mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor update
This commit is contained in:
parent
697768c01a
commit
cec432f94d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user