Aegis  4.25.D505
Typedefs | Enumerations | Functions
libaegis/dir.h File Reference
#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 Documentation

typedef void(* dir_walk_callback_ty)(void *arg, dir_walk_message_ty, string_ty *, const struct stat *)

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

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.

Parameters:
pathThe path to the directory to be walked.
cbThe function to be called for each file and directory.
argA extra argument ot be passed to the cb function, usually used to provide context.
void dir_walk ( const nstring path,
dir_functor cb 
)

The dir_walk function is used to recursively walk a directory tree, calling the cb functor for each entry.

Parameters:
pathThe path to the directory to be walked.
cbThe functor to be called for each file and directory.