libamxp
1.4.0
Patterns C Implementation
|
Ambiorix directory utilities. More...
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
Typedefs | |
typedef int(* | amxp_dir_match_fn_t) (const char *name, void *priv) |
Matching file/directory callback function signature. More... | |
Functions | |
int | amxp_dir_make (const char *path, const mode_t mode) |
Creates sub-directories. More... | |
int | amxp_dir_owned_make (const char *path, const mode_t mode, uid_t uid, gid_t gid) |
Creates sub-directories and changes ownership. More... | |
int | amxp_dir_scan (const char *path, const char *filter, bool recursive, amxp_dir_match_fn_t fn, void *priv) |
Scans a directory and calls a callback function for each matching entry found. More... | |
bool | amxp_dir_is_empty (const char *path) |
Checks if a directory is empty. More... | |
bool | amxp_dir_is_directory (const char *path) |
Checks if a path is a directory. More... | |
Ambiorix directory utilities.
Definition in file amxp_dir.h.