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 Documentation
Definition at line 38 of file dir.h.
Enumeration Type Documentation
- Enumerator:
| dir_walk_dir_before |
|
| dir_walk_dir_after |
|
| dir_walk_file |
|
| dir_walk_special |
|
| dir_walk_symlink |
|
Definition at line 27 of file dir.h.
Function Documentation
The dir_walk function is used to recursively walk a directory tree, calling the cb funtion for each entry.
- Parameters:
-
| 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. |
The dir_walk function is used to recursively walk a directory tree, calling the cb functor for each entry.
- Parameters:
-
| path | The path to the directory to be walked. |
| cb | The functor to be called for each file and directory. |