[rygel/rygel-0-16] media-export: Ignore files starting with .



commit ed637730a33629be221a5957bb193b5b834ef21c
Author: Jens Georg <jensg openismus com>
Date:   Mon Dec 3 19:58:33 2012 +0100

    media-export: Ignore files starting with .

 .../media-export/rygel-media-export-harvester.vala |    4 ++++
 1 files changed, 4 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 7c9a06c..fc9b7df 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -234,6 +234,10 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
     }
 
     private void on_changes_done (File file) throws Error {
+        if (file.get_basename ().has_prefix (".")) {
+            return;
+        }
+
         if (this.extraction_grace_timers.has_key (file)) {
             Source.remove (this.extraction_grace_timers[file]);
         } else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]