Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cec432f

Browse files
committed
minor update
1 parent 697768c commit cec432f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ def __purgeOutput():
13781378
Safely removes (purges) output directory.
13791379
"""
13801380

1381-
if conf.purgeOutput and os.path.isdir(paths.SQLMAP_OUTPUT_PATH):
1381+
if conf.purgeOutput:
13821382
purge(paths.SQLMAP_OUTPUT_PATH)
13831383

13841384
def __setConfAttributes():

lib/core/purge.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def purge(directory):
2121
"""
2222

2323
if not os.path.isdir(directory):
24+
warnMsg = "skipping purging of directory '%s' as it does not exist" % directory
25+
logger.warn(warnMsg)
2426
return
2527

2628
infoMsg = "purging content of directory ('%s'). Please wait as this could take a while" % directory

0 commit comments

Comments
 (0)