-
Couldn't load subscription status.
- Fork 932
Open
Labels
Description
In another use case, we want to open every file in the directory (to read some info) and print this out. There's quite a lot of files (100s) and this can take a long time - due to the fact that lfs_file_open will cause another directory traverse to find the top block of the file.
Again its adding to complexity but it might be useful to have an open that you could pass an lfs_info structure that is returned from lfs_dir_read and have it open it without the search overhead (e.g. lfs_file_open_direct).
The lfs_info struct would have to be modified to store the block info I guess.