exclude hidden directories from image browser
This commit is contained in:
parent
ec5d7e2a70
commit
9b848266fb
|
@ -104,6 +104,8 @@ def get_image_files(user=None, path=''):
|
|||
yield filename
|
||||
|
||||
for directory in storage_list[STORAGE_DIRECTORIES]:
|
||||
if directory.startswith('.'):
|
||||
continue
|
||||
directory_path = os.path.join(path, directory)
|
||||
for element in get_image_files(user=user, path=directory_path):
|
||||
yield element
|
||||
|
|
Loading…
Reference in New Issue