mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 18:56:27 +00:00
Do not list file starting with a . in upload handler
This commit is contained in:
parent
359abb0286
commit
6b70fa9794
@ -36,8 +36,9 @@ class UploadHandler:
|
||||
try:
|
||||
for root, _, files in os.walk(UploadHandler.image_directory()):
|
||||
for filename in files:
|
||||
image_file = os.path.join(root, filename)
|
||||
uploaded_files.append(image_file)
|
||||
if not filename.startswith("."):
|
||||
image_file = os.path.join(root, filename)
|
||||
uploaded_files.append(image_file)
|
||||
except OSError:
|
||||
pass
|
||||
iourc_path = os.path.join(os.path.expanduser("~/"), ".iourc")
|
||||
|
Loading…
Reference in New Issue
Block a user