mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-03 02:47:38 +01:00
Removed breadcrumbs on file browser before the jail directory
This commit is contained in:
parent
74d8e5f71b
commit
328c0a38d7
@ -6274,6 +6274,12 @@ def get_files_folders(starting_folder):
|
||||
else:
|
||||
if len([["{}:/".format(chr(i)), "{}:\\".format(chr(i))] for i in range(65, 91) if os.path.exists("{}:".format(chr(i)))]) > 0:
|
||||
breadcrumbs.insert(0, ['This PC', 'This PC'])
|
||||
|
||||
#if we're jailed, remove the stuff before the jail from the breadcrumbs
|
||||
if session['popup_jailed_dir'] is not None:
|
||||
|
||||
breadcrumbs = breadcrumbs[len(session['popup_jailed_dir'].split("/")):]
|
||||
|
||||
folders = []
|
||||
files = []
|
||||
base_path = os.path.abspath(starting_folder).replace("\\", "/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user