mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-30 20:28:08 +00:00
parent
bb0db7846f
commit
5ca9becdf9
@ -434,7 +434,10 @@ class Project:
|
|||||||
path = os.path.join(directory, project)
|
path = os.path.join(directory, project)
|
||||||
if os.path.exists(os.path.join(path, ".gns3_temporary")):
|
if os.path.exists(os.path.join(path, ".gns3_temporary")):
|
||||||
log.warning("Purge old temporary project {}".format(project))
|
log.warning("Purge old temporary project {}".format(project))
|
||||||
shutil.rmtree(path)
|
try:
|
||||||
|
shutil.rmtree(path)
|
||||||
|
except OSError as e:
|
||||||
|
log.error("Error when cleaning {}: {}".format(path, str(e)))
|
||||||
|
|
||||||
def modules(self):
|
def modules(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user