mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Do not hide non-executable file in the UploadHandler.
This commit is contained in:
parent
93a5f4be79
commit
2de817214f
@ -37,8 +37,7 @@ class UploadHandler:
|
|||||||
for root, _, files in os.walk(UploadHandler.image_directory()):
|
for root, _, files in os.walk(UploadHandler.image_directory()):
|
||||||
for filename in files:
|
for filename in files:
|
||||||
image_file = os.path.join(root, filename)
|
image_file = os.path.join(root, filename)
|
||||||
if os.access(image_file, os.X_OK):
|
uploaded_files.append(image_file)
|
||||||
uploaded_files.append(image_file)
|
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
iourc_path = os.path.join(os.path.expanduser("~/"), ".iourc")
|
iourc_path = os.path.join(os.path.expanduser("~/"), ".iourc")
|
||||||
|
Loading…
Reference in New Issue
Block a user