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