Auxiliary find_files() function. More...
Files | |
file | findfile.h |
Defines | |
#define | MTAB_PATH "/etc/mtab" |
#define | LOCAL_FILESYSTEMS {"ext2", "ext3", "reiserfs", "xfs", NULL} |
Functions | |
int | find_files (SEXP_t *path, SEXP_t *filename, SEXP_t *behaviors, int(*cb)(const char *, const char *, void *arg), void *arg) |
Search the filesystem according to the specified path, filename and behaviors. |
Auxiliary find_files() function.
int find_files | ( | SEXP_t * | path, | |
SEXP_t * | filename, | |||
SEXP_t * | behaviors, | |||
int(*)(const char *, const char *, void *arg) | cb, | |||
void * | arg | |||
) |
Search the filesystem according to the specified path, filename and behaviors.
For all paths and files that satisfy these requirements call the provided callback function.
path | the requested path in a sexp form, which may specify the matching operation or a var_ref | |
filenam | the requested filename in a sexp form, which may specify the matching operation or a var_ref | |
behaviors | the behaviors may specify the recursion depth or direction | |
cb | for each match, the callback function cb is called with first argument being the matched path and the second being the matched filename | |
arg | an optional argument to the callback function |