1 #ifndef ACL_SCAN_DIR_INCLUDE_H 2 #define ACL_SCAN_DIR_INCLUDE_H 46 #define ACL_SCAN_FLAG_RECURSIVE (1 << 0) 47 #define ACL_SCAN_FLAG_RMDIR (1 << 1) 68 #define ACL_SCAN_CTL_END 0 69 #define ACL_SCAN_CTL_FN 1 70 #define ACL_SCAN_CTL_CTX 2 71 #define ACL_SCAN_CTL_RMDIR_FN 3 203 int *nfile,
int *ndir);
224 int *ndir,
int *nfile);
ACL_API const char * acl_scan_dir_path(ACL_SCAN_DIR *scan)
struct ACL_SCAN_DIR ACL_SCAN_DIR
ACL_API acl_int64 acl_scan_dir_size(const char *pathname, int recursive, int *nfile, int *ndir)
HTTP_API void const char * name
ACL_API unsigned acl_scan_dir_nfiles(ACL_SCAN_DIR *scan)
ACL_API ACL_SCAN_DIR * acl_scan_dir_open(const char *path, int recursive)
int(* ACL_SCAN_DIR_FN)(ACL_SCAN_DIR *scan, void *ctx)
ACL_API int acl_scan_dir_push(ACL_SCAN_DIR *scan, const char *path)
ACL_API ACL_SCAN_DIR * acl_scan_dir_open2(const char *path, unsigned flags)
ACL_API const char * acl_scan_dir_next_dir(ACL_SCAN_DIR *scan)
ACL_API const char * acl_scan_dir_next(ACL_SCAN_DIR *scan)
ACL_API int acl_scan_stat(ACL_SCAN_DIR *scan, struct acl_stat *sbuf)
ACL_API int acl_scan_dir_stat(ACL_SCAN_DIR *scan, struct acl_stat *sbuf)
ACL_API acl_int64 acl_scan_dir_size2(ACL_SCAN_DIR *scan, int *nfile, int *ndir)
ACL_API const char * acl_scan_dir_next_file(ACL_SCAN_DIR *scan)
ACL_API void acl_scan_dir_reset(ACL_SCAN_DIR *scan)
ACL_API acl_int64 acl_scan_dir_nsize(ACL_SCAN_DIR *scan)
ACL_API acl_int64 acl_scan_dir_rm2(ACL_SCAN_DIR *scan, int *nfile, int *ndir)
int(* ACL_SCAN_RMDIR_FN)(ACL_SCAN_DIR *scan, const char *path, void *ctx)
ACL_API const char * acl_scan_dir_file(ACL_SCAN_DIR *scan)
ACL_API void acl_scan_dir_close(ACL_SCAN_DIR *scan)
ACL_API const char * acl_scan_dir_next_name(ACL_SCAN_DIR *scan, int *is_file)
ACL_API unsigned acl_scan_dir_ndirs(ACL_SCAN_DIR *scan)
ACL_API ACL_SCAN_DIR * acl_scan_dir_pop(ACL_SCAN_DIR *scan)
ACL_API acl_int64 acl_scan_dir_rm(const char *pathname, int recursive, int *ndir, int *nfile)
ACL_API void acl_scan_dir_ctl(ACL_SCAN_DIR *scan, int name,...)
ACL_API int acl_scan_dir_end(ACL_SCAN_DIR *scan)