21 #ifndef __EDELIB_DIRECTORY_H__
22 #define __EDELIB_DIRECTORY_H__
33 #define E_DIR_SEPARATOR '/'
41 #define E_DIR_SEPARATOR_STR "/"
49 EDELIB_API
bool dir_exists(
const char* name) EDELIB_DEPRECATED;
55 EDELIB_API
bool dir_readable(
const char* name) EDELIB_DEPRECATED;
61 EDELIB_API
bool dir_writeable(
const char* name) EDELIB_DEPRECATED;
70 EDELIB_API
bool dir_create(
const char* name,
int perm = 0777);
78 EDELIB_API
bool dir_create_with_parents(
const char* name,
int perm = 0777);
85 EDELIB_API
bool dir_remove(
const char* name);
91 EDELIB_API
bool dir_rename(
const char* from,
const char* to);
106 EDELIB_API
bool dir_empty(
const char* name);
111 EDELIB_API String dir_home(
void);
116 EDELIB_API String dir_current(
void);
135 EDELIB_API
bool dir_list(
const char* dir, list<String>& lst,
bool full_path =
false,
bool show_hidden =
false,
136 bool show_dots =
false);