From 21c56816eabee559559b5a03131a22dc420f0888 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 24 Jun 2020 08:53:16 +0200 Subject: Don't use utime() on Windows It has the seconds precision even if the time is unspecified. --- libbutl/filesystem.mxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbutl/filesystem.mxx') diff --git a/libbutl/filesystem.mxx b/libbutl/filesystem.mxx index 94ed366..935fc3f 100644 --- a/libbutl/filesystem.mxx +++ b/libbutl/filesystem.mxx @@ -548,6 +548,8 @@ LIBBUTL_MODEXPORT namespace butl // timestamp_nonexistent then it is left unchanged. All errors are reported // by throwing std::system_error. // + // Note: use touch_file() instead of file_mtime(system_clock::now()). + // LIBBUTL_SYMEXPORT void file_time (const char*, const entry_time&); -- cgit v1.1