Skip to content

Commit 1506a1d

Browse files
committed
dart: set access time of existing files
Signed-off-by: Shengqi Chen <[email protected]>
1 parent f00488b commit 1506a1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pub-mirror.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def download_pkg_ver(
8787
logger.error(f"Failed to download {url} to {dst_file.as_posix()}: {e}")
8888
return False
8989
else:
90+
os.utime(dst_file, (time.timestamp(), time.timestamp())) # update access and modified time
9091
logger.info(f"File {dst_file.as_posix()} already exists, skipping download")
9192
return True
9293

0 commit comments

Comments
 (0)