From 989577ff2361ba33008bcc38b498f674b9cf3a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 16 Jun 2019 10:12:02 +0200 Subject: [PATCH] Fix copyFile setting file times of write protected files. --- source/vibe/core/file.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/file.d b/source/vibe/core/file.d index 6117708..e32efef 100644 --- a/source/vibe/core/file.d +++ b/source/vibe/core/file.d @@ -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