1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

nested archives are not supported

This commit is contained in:
Alex Xu
2025-07-20 13:46:45 -07:00
parent 3cd6e09bcb
commit 8ab7520754

View File

@@ -981,6 +981,9 @@ def removeNonImages(filetree):
for root, dirs, files in os.walk(filetree, False):
if not files and not dirs:
os.rmdir(root)
if not os.listdir(Path(filetree).parent):
raise UserWarning('No images detected, nested archives are not supported.')
def sanitizeTree(filetree):