Skip to content

Commit

Permalink
Merge branch 'mr/sync_tree' into 'master'
Browse files Browse the repository at this point in the history
Use nanoseconds integer timestamps to copy file modification time

See merge request it/e3-core!27
  • Loading branch information
Nikokrock committed Aug 13, 2024
2 parents 14087ea + 4026632 commit 5c5c1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e3/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def copystat(src: FileInfo, dst: FileInfo) -> None:
else:
if hasattr(os, "utime"):
if preserve_timestamps:
os.utime(dst.path, (src.stat.st_atime, src.stat.st_mtime))
os.utime(dst.path, ns=(src.stat.st_atime_ns, src.stat.st_mtime_ns))
else:
os.utime(dst.path, None)
if hasattr(os, "chmod"):
Expand Down

0 comments on commit 5c5c1d5

Please sign in to comment.