mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 04:47:54 +00:00
Fix issue when trying to export temporary Dynamips files.
This commit is contained in:
parent
fad52ea2fc
commit
055a78bade
@ -130,6 +130,10 @@ def _is_exportable(path, include_snapshots=False):
|
|||||||
:returns: True if file should not be included in the final archive
|
:returns: True if file should not be included in the final archive
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# do not export file that does not exist anymore
|
||||||
|
if not os.path.exists(path):
|
||||||
|
return False
|
||||||
|
|
||||||
# do not export snapshots by default
|
# do not export snapshots by default
|
||||||
if include_snapshots is False and path.endswith("snapshots"):
|
if include_snapshots is False and path.endswith("snapshots"):
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user