[FL-2747, FL-2745] Browser worker fix, Device Info screen update #1620

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Nikolay Minaylov
2022-08-18 19:54:17 +03:00
committed by GitHub
parent 2e993b0a58
commit 2a452063c6
3 changed files with 14 additions and 8 deletions

View File

@@ -99,6 +99,11 @@ static bool browser_folder_check_and_switch(string_t path) {
FileInfo file_info;
Storage* storage = furi_record_open(RECORD_STORAGE);
bool is_root = false;
if(string_search_rchar(path, '/') == 0) {
is_root = true;
}
while(1) {
// Check if folder is existing and navigate back if not
if(storage_common_stat(storage, string_get_cstr(path), &file_info) == FSE_OK) {