Fix folder check in addFiles, when applying to offline media

This commit is contained in:
Fierelier 2021-05-19 17:48:57 +02:00
parent 2e67b13323
commit 04bcf5b42c

View File

@ -50,7 +50,7 @@ def addFiles(path):
ffile = p(root,file)
lfile = ffile.replace(path + os.path.sep,"",1)
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:
ffile = p(root,file)