minor update

This commit is contained in:
Miroslav Stampar 2012-04-23 14:43:59 +00:00
parent 697768c01a
commit cec432f94d
2 changed files with 3 additions and 1 deletions

View File

@ -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():

View File

@ -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