mirror of
https://github.com/ciromattia/kcc
synced 2026-05-13 11:01:40 +00:00
fix access denied
This commit is contained in:
@@ -73,10 +73,6 @@ class ComicArchive:
|
|||||||
tdir = os.listdir(targetdir)
|
tdir = os.listdir(targetdir)
|
||||||
if 'ComicInfo.xml' in tdir:
|
if 'ComicInfo.xml' in tdir:
|
||||||
tdir.remove('ComicInfo.xml')
|
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
|
return targetdir
|
||||||
|
|
||||||
def addFile(self, sourcefile):
|
def addFile(self, sourcefile):
|
||||||
|
|||||||
Reference in New Issue
Block a user