We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0c1531 commit 598db74Copy full SHA for 598db74
1 file changed
src/megatron/energon/local_copy.py
@@ -47,6 +47,7 @@ def ensure_local_copy(path: EPath) -> EPath:
47
# We are the downloader
48
try:
49
path.copy(EPath(tmp_path))
50
+ os.utime(tmp_path, (tmp_path.stat().st_atime, mod_time))
51
tmp_path.rename(final_path)
52
finally:
53
tmp_path.unlink(missing_ok=True)
0 commit comments