Skip to content

Commit

Permalink
fix access denied
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 committed Dec 21, 2023
1 parent a99c63a commit 54b5d69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kindlecomicconverter/comicarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ def extract(self, targetdir):
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):
Expand Down

0 comments on commit 54b5d69

Please sign in to comment.