1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-11 15:59:39 +00:00

fix access denied

This commit is contained in:
Alex Xu
2023-11-29 09:41:04 -08:00
parent a99c63acea
commit 54b5d698ee

View File

@@ -73,10 +73,6 @@ class ComicArchive:
tdir = os.listdir(targetdir)
if 'ComicInfo.xml' in tdir:
tdir.remove('ComicInfo.xml')
if len(tdir) == 1 and os.path.isdir(os.path.join(targetdir, tdir[0])):
for f in os.listdir(os.path.join(targetdir, tdir[0])):
move(os.path.join(targetdir, tdir[0], f), targetdir)
os.rmdir(os.path.join(targetdir, tdir[0]))
return targetdir
def addFile(self, sourcefile):