[rygel] media-export: skip files/folders starting with '.'
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] media-export: skip files/folders starting with '.'
- Date: Thu, 25 Jun 2009 15:48:15 +0000 (UTC)
commit bb9daaa9476cdffba0cee681ba55959a69871229
Author: Jens Georg <mail jensge org>
Date: Thu Jun 25 01:03:56 2009 +0200
media-export: skip files/folders starting with '.'
.../media-export/rygel-media-export-harvester.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index 2390a97..c140166 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -96,6 +96,9 @@ public class Rygel.MediaExportHarvester : GLib.Object {
var list = enumerator.next_files_finish (res);
if (list != null) {
foreach (var info in list) {
+ if (info.get_name ()[0] == '.') {
+ continue;
+ }
var dir = ((DummyContainer)this.containers.peek_head ()).file;
var file = dir.get_child (info.get_name ());
if (info.get_file_type () == FileType.DIRECTORY) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]