fix check
This commit is contained in:
parent
ade3f53db2
commit
9e78cf74f1
1 changed files with 5 additions and 2 deletions
5
utils.py
5
utils.py
|
|
@ -44,10 +44,13 @@ def remove_deselected_files():
|
|||
|
||||
def needs_update(src, out):
|
||||
mtime_src = os.lstat(src).st_mtime
|
||||
if os.path.exists(out)
|
||||
mtime_out = os.lstat(out).st_mtime
|
||||
else:
|
||||
mtime_out = 0
|
||||
#print("compare", src, out)
|
||||
#print("ts", mtime_src, mtime_out, mtime_src > mtime_out)
|
||||
if not os.path.exists(out) or mtime_src > mtime_out:
|
||||
if mtime_src > mtime_out:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue