Made get_image_files() exclude hidden files (leading . in filename).
This commit is contained in:
parent
bdb904ea08
commit
253a9d7af6
|
@ -98,7 +98,7 @@ def get_image_files(user=None, path=''):
|
||||||
return
|
return
|
||||||
|
|
||||||
for filename in storage_list[STORAGE_FILES]:
|
for filename in storage_list[STORAGE_FILES]:
|
||||||
if os.path.splitext(filename)[0].endswith('_thumb'):
|
if os.path.splitext(filename)[0].endswith('_thumb') or os.path.basename(filename).startswith('.'):
|
||||||
continue
|
continue
|
||||||
filename = os.path.join(browse_path, filename)
|
filename = os.path.join(browse_path, filename)
|
||||||
yield filename
|
yield filename
|
||||||
|
|
Loading…
Reference in New Issue