Bug: use mtime instead of atime as timestamp

atime == last time a file has been accessed.
mtime == last time a file has been modified.

Facepalm on that one…
This commit is contained in:
Félix Baylac Jacqué 2022-12-19 20:53:14 +01:00
parent c7c5f08cbc
commit eb782d3fd5
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class ResolvedLib:
self.fullpath: str = fullpath
if size is None or last_modification is None:
stat = os.stat(fullpath)
self.last_modification: float = stat.st_atime
self.last_modification: float = stat.st_mtime
self.size: int = stat.st_size
else:
self.last_modification = last_modification