mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 06:01:29 +00:00
minor update
This commit is contained in:
@@ -1378,7 +1378,7 @@ def __purgeOutput():
|
||||
Safely removes (purges) output directory.
|
||||
"""
|
||||
|
||||
if conf.purgeOutput and os.path.isdir(paths.SQLMAP_OUTPUT_PATH):
|
||||
if conf.purgeOutput:
|
||||
purge(paths.SQLMAP_OUTPUT_PATH)
|
||||
|
||||
def __setConfAttributes():
|
||||
|
||||
@@ -21,6 +21,8 @@ def purge(directory):
|
||||
"""
|
||||
|
||||
if not os.path.isdir(directory):
|
||||
warnMsg = "skipping purging of directory '%s' as it does not exist" % directory
|
||||
logger.warn(warnMsg)
|
||||
return
|
||||
|
||||
infoMsg = "purging content of directory ('%s'). Please wait as this could take a while" % directory
|
||||
|
||||
Reference in New Issue
Block a user