mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-05 23:59:09 +00:00
List only executable files in upload handler.
This commit is contained in:
parent
0e8c184987
commit
8b19029d97
@ -35,6 +35,8 @@ class UploadHandler:
|
||||
try:
|
||||
for root, _, files in os.walk(UploadHandler.image_directory()):
|
||||
for filename in files:
|
||||
image_file = os.path.join(root, filename)
|
||||
if os.access(image_file, os.X_OK):
|
||||
image_files.append(os.path.join(root, filename))
|
||||
except OSError:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user