src/strip.vala
authorAlan Knowles <alan@roojs.com>
Tue, 7 Aug 2018 08:31:03 +0000 (16:31 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 7 Aug 2018 08:31:03 +0000 (16:31 +0800)
src/strip.vala

index 31a07d2..afd139c 100644 (file)
@@ -1068,6 +1068,10 @@ public class Strip : GLib.Object {
                
         }
         
+       if (GLib.FileUtils.test( basepath + subpath + ".strip-done-stamp", GLib.FileTest.EXISTS )) {
+               return;
+               }
+        
         
         var f = File.new_for_path(basepath + subpath);
                FileEnumerator file_enum;
@@ -1149,6 +1153,13 @@ public class Strip : GLib.Object {
             this.scan_dir(basepath,sp);
             
         }
+        
+        // completed this folder
+        
+        if (opt_stamp) {
+               GLib.FileUtils.set_contents (basepath + subpath + ".strip-done-stamp", "Stripper done");
+        }
+        
     
     
     }