diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-24 08:53:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-24 08:53:16 +0200 |
commit | 21c56816eabee559559b5a03131a22dc420f0888 (patch) | |
tree | 62304ea91160767e5d317fcdda189df14545ffe8 /libbutl/filesystem.mxx | |
parent | 85804b86a97e6275fa015c130f382043d52503fa (diff) |
Don't use utime() on Windows
It has the seconds precision even if the time is unspecified.
Diffstat (limited to 'libbutl/filesystem.mxx')
-rw-r--r-- | libbutl/filesystem.mxx | 2 |
1 files changed, 2 insertions, 0 deletions
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&); |