From cf7fc1602d1750d1a763c5c7785e90c9682483e6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 7 Aug 2018 16:31:03 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/strip.vala b/src/strip.vala index 31a07d2..afd139c 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -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"); + } + } -- 2.39.2