Fix copyFile setting file times of write protected files.

This commit is contained in:
Sönke Ludwig 2019-06-16 10:12:02 +02:00
parent b68c8b12f9
commit 989577ff23

View file

@ -238,12 +238,12 @@ void copyFile(NativePath from, NativePath to, bool overwrite = false)
static if (__VERSION__ < 2078) {
() @trusted {
setAttributes(to.toString, info.attributes);
setTimes(to.toString, info.timeLastAccessed, info.timeLastModified);
setAttributes(to.toString, info.attributes);
} ();
} else {
setAttributes(to.toString, info.attributes);
setTimes(to.toString, info.timeLastAccessed, info.timeLastModified);
setAttributes(to.toString, info.attributes);
}
}
/// ditto