mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +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