Skip to content

Commit

Permalink
Make windows_file::stat return the same mtime as fs::stat
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkosto authored and Nekotekina committed Oct 5, 2019
1 parent 305a5bd commit 297e3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ fs::file::file(const std::string& path, bs_t<open_mode> mode)
info.is_writable = (basic_info.FileAttributes & FILE_ATTRIBUTE_READONLY) == 0;
info.size = this->size();
info.atime = to_time(basic_info.LastAccessTime);
info.mtime = to_time(basic_info.ChangeTime);
info.mtime = to_time(basic_info.LastWriteTime);
info.ctime = info.mtime;

if (info.atime < info.mtime)
Expand Down

0 comments on commit 297e3c5

Please sign in to comment.