Do not list file starting with a . in upload handler

This commit is contained in:
Julien Duponchelle 2015-04-30 15:56:30 +02:00
parent 359abb0286
commit 6b70fa9794

View File

@ -36,6 +36,7 @@ class UploadHandler:
try:
for root, _, files in os.walk(UploadHandler.image_directory()):
for filename in files:
if not filename.startswith("."):
image_file = os.path.join(root, filename)
uploaded_files.append(image_file)
except OSError: