![]() |
BSB Developer Docs
|
Library for directory content listing. More...
#include <storage/storage.h>Go to the source code of this file.
Typedefs | |
| typedef struct DirWalk | DirWalk |
| typedef bool(* | DirWalkFilterCb) (const char *name, FileInfo *fileinfo, void *ctx) |
Enumerations | |
| enum | DirWalkResult { DirWalkOK , DirWalkError , DirWalkLast } |
Functions | |
| DirWalk * | dir_walk_alloc (Storage *storage) |
| Allocate DirWalk. | |
| void | dir_walk_free (DirWalk *dir_walk) |
| Free DirWalk. | |
| void | dir_walk_set_recursive (DirWalk *dir_walk, bool recursive) |
| Set recursive mode (true by default) | |
| void | dir_walk_set_filter_cb (DirWalk *dir_walk, DirWalkFilterCb cb, void *context) |
| Set filter callback (Should return true if the data is valid) | |
| bool | dir_walk_open (DirWalk *dir_walk, const char *path) |
| Open directory. | |
| FS_Error | dir_walk_get_error (DirWalk *dir_walk) |
| Get error id. | |
| DirWalkResult | dir_walk_read (DirWalk *dir_walk, FuriString *return_path, FileInfo *fileinfo) |
| Read next element from directory. | |
| void | dir_walk_close (DirWalk *dir_walk) |
| Close directory. | |
| bool | dir_walk_is_dir_callback (const char *path, FileInfo *file_info, void *context) |
| Filter callback to be used with dir_walk_set_filter_cb. | |
Library for directory content listing.
| enum DirWalkResult |
| void dir_walk_close | ( | DirWalk * | dir_walk | ) |
Close directory.
| dir_walk |
| void dir_walk_free | ( | DirWalk * | dir_walk | ) |
Free DirWalk.
| dir_walk |
| FS_Error dir_walk_get_error | ( | DirWalk * | dir_walk | ) |
Get error id.
| dir_walk |
| bool dir_walk_is_dir_callback | ( | const char * | path, |
| FileInfo * | file_info, | ||
| void * | context ) |
Filter callback to be used with dir_walk_set_filter_cb.
Accepts directories only.
| bool dir_walk_open | ( | DirWalk * | dir_walk, |
| const char * | path ) |
Open directory.
| dir_walk | |
| path |
| DirWalkResult dir_walk_read | ( | DirWalk * | dir_walk, |
| FuriString * | return_path, | ||
| FileInfo * | fileinfo ) |
Read next element from directory.
| dir_walk | |
| return_path | |
| fileinfo |
| void dir_walk_set_filter_cb | ( | DirWalk * | dir_walk, |
| DirWalkFilterCb | cb, | ||
| void * | context ) |
Set filter callback (Should return true if the data is valid)
| dir_walk | |
| cb | |
| context |
| void dir_walk_set_recursive | ( | DirWalk * | dir_walk, |
| bool | recursive ) |
Set recursive mode (true by default)
| dir_walk | |
| recursive |