mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add browse function to settings with a folder or file
This commit is contained in:
parent
fcca7f969e
commit
7b69ed4cec
2 changed files with 77 additions and 20 deletions
|
@ -1269,6 +1269,10 @@ def browse_path(path=None, include_hidden=False, filter_ext=''):
|
|||
'icon': 'folder'
|
||||
}
|
||||
output.append(out)
|
||||
|
||||
if filter_ext == '.folderonly':
|
||||
break
|
||||
|
||||
for f in sorted(files):
|
||||
if not include_hidden and f.startswith('.'):
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue