Function flipperzero_sys::storage_file_open
source · [−]pub unsafe extern "C" fn storage_file_open(
file: *mut File,
path: *const c_char,
access_mode: FS_AccessMode,
open_mode: FS_OpenMode
) -> boolExpand description
Opens an existing file or create a new one. @param file pointer to file object. @param path path to file @param access_mode access mode from FS_AccessMode @param open_mode open mode from FS_OpenMode @return success flag. You need to close the file even if the open operation failed.