We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 697768c commit cec432fCopy full SHA for cec432f
2 files changed
lib/core/option.py
@@ -1378,7 +1378,7 @@ def __purgeOutput():
1378
Safely removes (purges) output directory.
1379
"""
1380
1381
- if conf.purgeOutput and os.path.isdir(paths.SQLMAP_OUTPUT_PATH):
+ if conf.purgeOutput:
1382
purge(paths.SQLMAP_OUTPUT_PATH)
1383
1384
def __setConfAttributes():
lib/core/purge.py
@@ -21,6 +21,8 @@ def purge(directory):
21
22
23
if not os.path.isdir(directory):
24
+ warnMsg = "skipping purging of directory '%s' as it does not exist" % directory
25
+ logger.warn(warnMsg)
26
return
27
28
infoMsg = "purging content of directory ('%s'). Please wait as this could take a while" % directory
0 commit comments