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:
parent
c7c5f08cbc
commit
eb782d3fd5
|
@ -42,7 +42,7 @@ class ResolvedLib:
|
||||||
self.fullpath: str = fullpath
|
self.fullpath: str = fullpath
|
||||||
if size is None or last_modification is None:
|
if size is None or last_modification is None:
|
||||||
stat = os.stat(fullpath)
|
stat = os.stat(fullpath)
|
||||||
self.last_modification: float = stat.st_atime
|
self.last_modification: float = stat.st_mtime
|
||||||
self.size: int = stat.st_size
|
self.size: int = stat.st_size
|
||||||
else:
|
else:
|
||||||
self.last_modification = last_modification
|
self.last_modification = last_modification
|
||||||
|
|
Loading…
Reference in New Issue