mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Removed breadcrumbs on file browser before the jail directory
This commit is contained in:
@ -6274,6 +6274,12 @@ def get_files_folders(starting_folder):
|
|||||||
else:
|
else:
|
||||||
if len([["{}:/".format(chr(i)), "{}:\\".format(chr(i))] for i in range(65, 91) if os.path.exists("{}:".format(chr(i)))]) > 0:
|
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'])
|
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 = []
|
folders = []
|
||||||
files = []
|
files = []
|
||||||
base_path = os.path.abspath(starting_folder).replace("\\", "/")
|
base_path = os.path.abspath(starting_folder).replace("\\", "/")
|
||||||
|
Reference in New Issue
Block a user