Merge branch 'master' of mara.ddp.net:photoassistant
This commit is contained in:
@@ -307,7 +307,7 @@ def SymlinkName(path, file):
|
|||||||
else:
|
else:
|
||||||
last_bit = os.path.dirname(sig_bit)
|
last_bit = os.path.dirname(sig_bit)
|
||||||
symlink = 'static'+'/'+last_dir+'/'+last_bit
|
symlink = 'static'+'/'+last_dir+'/'+last_bit
|
||||||
if symlink[-1] == os.path.sep:
|
if symlink[-1] == '/':
|
||||||
symlink=symlink[0:-1]
|
symlink=symlink[0:-1]
|
||||||
return symlink
|
return symlink
|
||||||
|
|
||||||
@@ -387,9 +387,6 @@ 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