mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-07 08:43:48 +02:00
Merge branch '1.5' into 2.0
This commit is contained in:
commit
30f05c6190
@ -482,9 +482,9 @@ class Project:
|
|||||||
# topdown allo to modify the list of directory in order to ignore
|
# topdown allo to modify the list of directory in order to ignore
|
||||||
# directory
|
# directory
|
||||||
for root, dirs, files in os.walk(self._path, topdown=True):
|
for root, dirs, files in os.walk(self._path, topdown=True):
|
||||||
# Remove snapshots
|
# Remove snapshots and capture
|
||||||
if os.path.split(root)[-1:][0] == "project-files":
|
if os.path.split(root)[-1:][0] == "project-files":
|
||||||
dirs[:] = [d for d in dirs if d != "snapshots"]
|
dirs[:] = [d for d in dirs if d not in ("snapshots", "captures")]
|
||||||
|
|
||||||
# Ignore log files and OS noise
|
# Ignore log files and OS noise
|
||||||
files = [f for f in files if not f.endswith('_log.txt') and not f.endswith('.log') and f != '.DS_Store']
|
files = [f for f in files if not f.endswith('_log.txt') and not f.endswith('.log') and f != '.DS_Store']
|
||||||
|
Loading…
Reference in New Issue
Block a user