Closed crafcat7 closed 7 months ago
I added two new interfaces to obtain the path of the file/folder.
int lfs_dir_path(lfs_t *lfs, lfs_dir_t *dir, char *path, lfs_size_t size); int lfs_file_path(lfs_t *lfs, lfs_file_t *file, char *path, lfs_size_t size);
Mainly rely on a new internal interface, to a recursive search target
static lfs_ssize_t lfs_dir_path_(lfs_t *lfs, lfs_mdir_t *dir, uint16_t id, char *path, lfs_size_t size)
Modify the local commit branch and merge the new PR to https://github.com/littlefs-project/littlefs/pull/976
I added two new interfaces to obtain the path of the file/folder.
Mainly rely on a new internal interface, to a recursive search target