esp_littlefs_allocate_fd() function
Get a file descriptor
Arguments
file
pointer to a file that'll be filled with a file object
path_len
the length of the filepath in bytes (including terminating zero byte)
Return value
integer file descriptor. Returns -1 if a FD cannot be obtained. @warning This must be called with lock taken