mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Browse path starting from from current value
This commit is contained in:
parent
b52ab4885b
commit
a675202537
5 changed files with 23 additions and 32 deletions
|
@ -1232,6 +1232,9 @@ def browse_path(path=None, include_hidden=False, filter_ext=''):
|
|||
}
|
||||
output.append(out)
|
||||
|
||||
if os.path.isfile(path):
|
||||
path = os.path.dirname(path)
|
||||
|
||||
if not os.path.isdir(path):
|
||||
return output
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue