mirror of
https://github.com/ciromattia/kcc
synced 2025-12-23 14:41:47 +00:00
Fix an issue for 1-page PDFs
This commit is contained in:
@@ -70,10 +70,3 @@ class PdfJpgExtract:
|
|||||||
njpg += 1
|
njpg += 1
|
||||||
i = iend
|
i = iend
|
||||||
|
|
||||||
dir = os.listdir(self.path)
|
|
||||||
if len(dir) == 1:
|
|
||||||
import shutil
|
|
||||||
for f in os.listdir(self.path + "/" + dir[0]):
|
|
||||||
shutil.move(self.path + "/" + dir[0] + "/" + f, self.path)
|
|
||||||
os.rmdir(self.path + "/" + dir[0])
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user