Fix folder check in addFiles, when applying to offline media
This commit is contained in:
parent
2e67b13323
commit
04bcf5b42c
@ -50,7 +50,7 @@ def addFiles(path):
|
|||||||
ffile = p(root,file)
|
ffile = p(root,file)
|
||||||
lfile = ffile.replace(path + os.path.sep,"",1)
|
lfile = ffile.replace(path + os.path.sep,"",1)
|
||||||
ofile = p(target["path"],lfile)
|
ofile = p(target["path"],lfile)
|
||||||
if not os.path.isfile(ofile): os.makedirs(ofile)
|
if not os.path.isdir(ofile): os.makedirs(ofile)
|
||||||
|
|
||||||
for file in files:
|
for file in files:
|
||||||
ffile = p(root,file)
|
ffile = p(root,file)
|
||||||
|
Loading…
Reference in New Issue
Block a user