Add browse function to settings with a folder or file

This commit is contained in:
JonnyWong16
2020-07-16 19:27:14 -07:00
parent fcca7f969e
commit 7b69ed4cec
2 changed files with 77 additions and 20 deletions

View File

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