quick fix

This commit is contained in:
2021-01-21 15:04:09 +11:00
parent 197c864624
commit e56b7f51cc

View File

@@ -387,6 +387,9 @@ def JobImportDir(job):
fname=file.replace(path, "")
stat = os.stat(file)
dirname=SymlinkName(path, file)
# hack to cater for windows paths and my keep_dirs dict
if 'c:' in jex.value:
dirname=dirname.replace('\\','/')
if stat.st_ctime > keep_dirs[dirname].last_import_date:
if DEBUG==1:
AddLogForJob(job, "DEBUG: {} - {} is newer than {}".format( file, stat.st_ctime, keep_dirs[dirname].last_import_date ), file )