Merge pull request #148 from jsatt/exclude-hidden-directories

Exclude hidden directories from image browser
This commit is contained in:
riklaunim 2014-11-23 02:56:13 +01:00
commit 1983840b76
1 changed files with 2 additions and 0 deletions

View File

@ -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