mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Patch for an Issue #563
This commit is contained in:
parent
59b6791faa
commit
cda27ec20b
|
@ -75,4 +75,8 @@ def purge(directory):
|
|||
|
||||
logger.debug("deleting the whole directory tree")
|
||||
os.chdir(os.path.join(directory, ".."))
|
||||
shutil.rmtree(directory)
|
||||
|
||||
try:
|
||||
shutil.rmtree(directory)
|
||||
except OSError, ex:
|
||||
logger.error("problem occurred while removing directory '%s' ('%s')" % (directory, ex))
|
||||
|
|
Loading…
Reference in New Issue
Block a user