Fix an issue for 1-page PDFs
This commit is contained in:
1 parent
6029aa2606
commit
51d857da0d
1 file changed
-7
@@ -70,10 +70,3 @@ class PdfJpgExtract:
|
||||
njpg += 1
|
||||
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