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

put dot_clean in sanitize

This commit is contained in:
Alex Xu
2025-07-10 23:07:15 -07:00
parent 0e12fc30c6
commit 95f9a3cda9

View File

@@ -693,7 +693,6 @@ def getWorkFolder(afile):
path = cbx.extract(workdir)
sanitizePermissions(path)
dot_clean(path)
tdir = os.listdir(workdir)
if len(tdir) == 2 and 'ComicInfo.xml' in tdir:
tdir.remove('ComicInfo.xml')
@@ -894,6 +893,7 @@ def sanitizePermissions(filetree):
os.chmod(os.path.join(root, name), S_IWRITE | S_IREAD)
for name in dirs:
os.chmod(os.path.join(root, name), S_IWRITE | S_IREAD | S_IEXEC)
dot_clean(filetree)
def dot_clean(filetree):