14 * A minor convenience for quick member access, as in "DIR_ITEM_GET(a,
15 * i)->member". Most of the time this macro is not what you want to
18 #define DIR_ITEM_GET(a, i) ((struct dir_item *) array_get((a), (i)))
20 Array dir_scan(const char *,
21 int (*filter) (struct dir_item *),
22 List (*list_files)(const char *),
23 void (*free_files)(List));
26 List dir_list_files(const char *);
27 void dir_list_free (List);
29 int dir_exists(const char *);
33 #define dir_make(path) _mkdir(path)
36 #define dir_make(path) mkdir(path, 0777)