mirror of
https://github.com/ciromattia/kcc
synced 2026-10-12 12:32:32 +00:00
nested archives are not supported
This commit is contained in:
@@ -981,6 +981,9 @@ def removeNonImages(filetree):
|
|||||||
for root, dirs, files in os.walk(filetree, False):
|
for root, dirs, files in os.walk(filetree, False):
|
||||||
if not files and not dirs:
|
if not files and not dirs:
|
||||||
os.rmdir(root)
|
os.rmdir(root)
|
||||||
|
|
||||||
|
if not os.listdir(Path(filetree).parent):
|
||||||
|
raise UserWarning('No images detected, nested archives are not supported.')
|
||||||
|
|
||||||
|
|
||||||
def sanitizeTree(filetree):
|
def sanitizeTree(filetree):
|
||||||
|
|||||||
Reference in New Issue
Block a user