From 1506a1dd7059a8bbf5329b3c1f930afc473a4efb Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Wed, 10 Sep 2025 02:26:01 +0800 Subject: [PATCH] dart: set access time of existing files Signed-off-by: Shengqi Chen --- pub-mirror.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pub-mirror.py b/pub-mirror.py index 5b27e5a..d6e7483 100755 --- a/pub-mirror.py +++ b/pub-mirror.py @@ -87,6 +87,7 @@ def download_pkg_ver( logger.error(f"Failed to download {url} to {dst_file.as_posix()}: {e}") return False else: + os.utime(dst_file, (time.timestamp(), time.timestamp())) # update access and modified time logger.info(f"File {dst_file.as_posix()} already exists, skipping download") return True