Skip to content

Commit

Permalink
Use nanoseconds integer timestamps to copy file modification time
Browse files Browse the repository at this point in the history
Part of it/e3-core#10
  • Loading branch information
Nikokrock committed Aug 12, 2024
1 parent 14087ea commit 4026632
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 4026632

Please sign in to comment.