quick fix
This commit is contained in:
@@ -387,6 +387,9 @@ def JobImportDir(job):
|
|||||||
fname=file.replace(path, "")
|
fname=file.replace(path, "")
|
||||||
stat = os.stat(file)
|
stat = os.stat(file)
|
||||||
dirname=SymlinkName(path, 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 stat.st_ctime > keep_dirs[dirname].last_import_date:
|
||||||
if DEBUG==1:
|
if DEBUG==1:
|
||||||
AddLogForJob(job, "DEBUG: {} - {} is newer than {}".format( file, stat.st_ctime, keep_dirs[dirname].last_import_date ), file )
|
AddLogForJob(job, "DEBUG: {} - {} is newer than {}".format( file, stat.st_ctime, keep_dirs[dirname].last_import_date ), file )
|
||||||
|
|||||||
Reference in New Issue
Block a user