From: Alan Knowles Date: Tue, 7 Aug 2018 08:31:03 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=cf7fc1602d1750d1a763c5c7785e90c9682483e6 src/strip.vala --- 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"); + } + }