mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Improve error handling, use correct drive id
This commit is contained in:
@@ -158,7 +158,7 @@ size_t storage_open_files_count(StorageData* storage) {
|
||||
}
|
||||
|
||||
const char* storage_file_get_path(File* file, StorageData* storage) {
|
||||
if(!storage_has_file(file, storage)) return "";
|
||||
StorageFile* storage_file_ref = storage_get_file(file, storage);
|
||||
if(!storage_file_ref) return "";
|
||||
return furi_string_get_cstr(storage_file_ref->path);
|
||||
}
|
||||
Reference in New Issue
Block a user