1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Filter images starting by .

This commit is contained in:
Julien Duponchelle 2016-08-18 19:29:09 +02:00
parent 7777407c4b
commit 1c2a56ee8e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -40,7 +40,7 @@ def scan_for_images(type):
for file in filenames:
path = os.path.join(root, file)
if file not in files:
if file.endswith(".md5sum"):
if file.endswith(".md5sum") or file.startswith("."):
continue
elif (file.endswith(".image") and type == "dynamips") \
or (file.endswith(".bin") and type == "iou") \