src/strip.vala
authorAlan Knowles <alan@roojs.com>
Fri, 4 May 2018 05:57:43 +0000 (13:57 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 4 May 2018 05:57:43 +0000 (13:57 +0800)
src/strip.vala

index 00c654a..1cdb08c 100644 (file)
@@ -725,6 +725,11 @@ public class Strip : GLib.Object {
                GLib.debug("copy tmp file %s to %s" , tmpfile, path +"/" + name);               
                Posix.link(tmpfile, path +"/" + name);
                Posix.unlink(tmpfile);
+               newfileinfo = File.new_for_path(path +"/" + name)
+                                       .query_info(GLib.FileAttribute.STANDARD_SIZE+","+GLib.FileAttribute.TIME_MODIFIED
+                                               ,GLib.FileQueryInfoFlags.NONE,null);
+               newfileinfo.set_modification_time(mod_time);
+               
                }
        this.processed++;