Merge pull request #148 from jsatt/exclude-hidden-directories
Exclude hidden directories from image browser
This commit is contained in:
commit
1983840b76
|
@ -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