From 40266321d0d7a6e726e21bb5fafbcf9b21e64c98 Mon Sep 17 00:00:00 2001 From: Nicolas Roche Date: Mon, 12 Aug 2024 16:52:49 +0200 Subject: [PATCH] Use nanoseconds integer timestamps to copy file modification time Part of it/e3-core#10 --- src/e3/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e3/fs.py b/src/e3/fs.py index 3f8ae8ee..ad566cff 100644 --- a/src/e3/fs.py +++ b/src/e3/fs.py @@ -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"):