From 637a7326ec75a4d47f11b6ab7dbe60126b172ed6 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 21 Apr 2016 17:02:05 +0200 Subject: [PATCH] Ignore captures during project export --- gns3server/modules/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/project.py b/gns3server/modules/project.py index 1e679260..c1db86e0 100644 --- a/gns3server/modules/project.py +++ b/gns3server/modules/project.py @@ -529,9 +529,9 @@ class Project: # topdown allo to modify the list of directory in order to ignore # directory 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": - 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 files = [f for f in files if not f.endswith('_log.txt') and not f.endswith('.log') and f != '.DS_Store']