Skip to content

Commit d2f5491

Browse files
Clean up a bit more
1 parent 1d939a7 commit d2f5491

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_scripts/removeUnusedAttachments.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def dirWalk(start, globPattern="**/*"):
6161
break
6262
# Delete files that are in dirList2 and not in the attachment list
6363
if deleteFlag is True:
64+
# Make sure that it is not a directory
6465
if pathlib.Path.is_file(file):
6566
pathlib.Path.unlink(file)
66-
else:
67-
continue

0 commit comments

Comments
 (0)