add mtime to reference models

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-13 20:53:37 -04:00
parent 5cd88e93ed
commit ff2c03538d
8 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ def walk(folder: str):
def stat(fn: str):
if fn is None or len(fn) == 0 or not os.path.exists(fn):
return 0, None
return 0, datetime.fromtimestamp(0)
fs_stat = os.stat(fn, follow_symlinks=False)
mtime = datetime.fromtimestamp(fs_stat.st_mtime).replace(microsecond=0)
if os.path.islink(fn):