esp_littlefs_get_fd_by_name() function
finds an open file descriptor by file name.
Return value
integer file descriptor. Returns -1 if not found. @warning This must be called with lock taken @warning if CONFIG_LITTLEFS_USE_ONLY_HASH, there is a slim chance an erroneous FD may be returned on hash collision.