00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EDELIB_DIRECTORY_H__
00022 #define __EDELIB_DIRECTORY_H__
00023
00024 #include "String.h"
00025 #include "List.h"
00026
00033 #define E_DIR_SEPARATOR '/'
00034
00041 #define E_DIR_SEPARATOR_STR "/"
00042
00043 EDELIB_NS_BEGIN
00044
00049 EDELIB_API bool dir_exists(const char* name) EDELIB_DEPRECATED;
00050
00055 EDELIB_API bool dir_readable(const char* name) EDELIB_DEPRECATED;
00056
00061 EDELIB_API bool dir_writeable(const char* name) EDELIB_DEPRECATED;
00062
00070 EDELIB_API bool dir_create(const char* name, int perm = 0777);
00071
00078 EDELIB_API bool dir_create_with_parents(const char* name, int perm = 0777);
00079
00085 EDELIB_API bool dir_remove(const char* name);
00086
00091 EDELIB_API bool dir_rename(const char* from, const char* to);
00092
00106 EDELIB_API bool dir_empty(const char* name);
00107
00111 EDELIB_API String dir_home(void);
00112
00116 EDELIB_API String dir_current(void);
00117
00135 EDELIB_API bool dir_list(const char* dir, list<String>& lst, bool full_path = false, bool show_hidden = false,
00136 bool show_dots = false);
00137
00138 EDELIB_NS_END
00139 #endif
00140