mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-27 00:11:07 +00:00
parent
41f12457e7
commit
87e2326363
@ -535,6 +535,9 @@ class Project:
|
|||||||
Delete unused images
|
Delete unused images
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Project have been deleted
|
||||||
|
if not os.path.exists(self.path):
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
pictures = set(os.listdir(self.pictures_directory))
|
pictures = set(os.listdir(self.pictures_directory))
|
||||||
for drawing in self._drawings.values():
|
for drawing in self._drawings.values():
|
||||||
|
Loading…
Reference in New Issue
Block a user