for file in known_files:
filepath = os.path.join(path,file)
if os.path.isfile(filepath):
- mtime = int(os.path.getmtime(filepath))
+ mtime = int(os.lstat(filepath).st_mtime)
# There may be more than one "known_file" present, if so, use the youngest one
if mtime > source_date_epoch:
source_date_epoch = mtime
for fname in files:
filename = os.path.join(root, fname)
try:
- mtime = int(os.path.getmtime(filename))
+ mtime = int(os.lstat(filename).st_mtime)
except ValueError:
mtime = 0
if mtime > source_date_epoch: