#include <common/nstring.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | dir_walk_callback_ty )(void *arg, dir_walk_message_ty, string_ty *, const struct stat *) |
Enumerations | |
enum | dir_walk_message_ty { dir_walk_dir_before, dir_walk_dir_after, dir_walk_file, dir_walk_special, dir_walk_symlink } |
Functions | |
void | dir_walk (string_ty *path, dir_walk_callback_ty cb, void *arg) |
void | dir_walk (const nstring &path, dir_functor &cb) |
typedef void(* dir_walk_callback_ty)(void *arg, dir_walk_message_ty, string_ty *, const struct stat *) |
enum dir_walk_message_ty |
void dir_walk | ( | const nstring & | path, | |
dir_functor & | cb | |||
) |
void dir_walk | ( | string_ty * | path, | |
dir_walk_callback_ty | cb, | |||
void * | arg | |||
) |
The dir_walk function is used to recursively walk a directory tree, calling the cb funtion for each entry.
path | The path to the directory to be walked. | |
cb | The function to be called for each file and directory. | |
arg | A extra argument ot be passed to the cb function, usually used to provide context. |