Function esp_idf_sys::esp_vfs_fat_test_contiguous_file
source · pub unsafe extern "C" fn esp_vfs_fat_test_contiguous_file(
base_path: *const c_char,
full_path: *const c_char,
is_contiguous: *mut bool,
) -> esp_err_t
Expand description
@brief Test if a file is contiguous in the FAT filesystem
@param base_path Base path of the partition examined (e.g. “/spiflash”)
@param full_path Full path of the file (e.g. “/spiflash/ABC.TXT”)
@param[out] is_contiguous True == allocate space now, false == prepare to allocate – see f_expand
from FATFS
@return
- ESP_OK on success
- ESP_ERR_INVALID_ARG if invalid arguments (e.g. any of arguments are NULL)
- ESP_ERR_INVALID_STATE if partition not found
- ESP_FAIL if another FRESULT error (saved in errno)