X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2Fstrip.vala;fp=src%2Fstrip.vala;h=afd139c5d0bbf7b6ccc2232c85ed13b1ffdbe0c7;hb=cf7fc1602d1750d1a763c5c7785e90c9682483e6;hp=31a07d272c6062d03ddd2d4ff328eedee3240404;hpb=5c896d3eeec4013ffca1bc63efed929d872c36b0;p=app.mailtrimmer 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"); + } + }