We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d939a7 commit d2f5491Copy full SHA for d2f5491
_scripts/removeUnusedAttachments.py
@@ -61,7 +61,6 @@ def dirWalk(start, globPattern="**/*"):
61
break
62
# Delete files that are in dirList2 and not in the attachment list
63
if deleteFlag is True:
64
+ # Make sure that it is not a directory
65
if pathlib.Path.is_file(file):
66
pathlib.Path.unlink(file)
- else:
67
- continue
0 commit comments