-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
dotnet/corefx
#30996Labels
area-System.IOenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
Currently, method such as File.GetLastWriteTime and FileInfo.LastWriteTime return timestamps which are only accurate to the nearest second on Unix. On OSX, this seems to be a system-level limitation in HFS+. On most Linux filesystems, however, millisecond-level information does seem to be available, at least via stat. @stephentoub recommended that we could use utimes rather than utime in the native shim in order to retrieve this information.
This also seems to affect files copied by File.Copy, because we copy over some timestamp metadata from the source file (to match Windows).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.IOenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors