58 AccessType _access_type;
59 static CreateFunc create_func[ACCESS_MAX];
61 String _get_root_path()
const;
62 String _get_root_string()
const;
78 virtual String get_next(
bool* p_is_dir);
79 virtual String get_next()=0;
80 virtual bool current_is_dir()
const=0;
81 virtual bool current_is_hidden()
const=0;
83 virtual void list_dir_end()=0;
85 virtual int get_drive_count()=0;
86 virtual String get_drive(
int p_drive)=0;
87 virtual int get_current_drive();
91 virtual Error make_dir(
String p_dir)=0;
92 virtual Error make_dir_recursive(
String p_dir);
93 virtual Error erase_contents_recursive();
95 virtual bool file_exists(
String p_file)=0;
96 virtual bool dir_exists(
String p_dir)=0;
97 static bool exists(
String p_dir);
98 virtual size_t get_space_left()=0;
102 virtual Error
remove(
String p_name)=0;
104 static String get_full_path(
const String& p_path,AccessType p_access);
117 static DirAccess *create(AccessType p_access);
120 static void make_default(AccessType p_access) {
122 create_func[p_access]=_create_builtin<T>;
139 operator bool()
const {
return f!=NULL; }
virtual String get_current_dir()=0
return current dir location
virtual Error change_dir(String p_dir)=0
can be relative or absolute, return false on success
virtual bool list_dir_begin()=0
This starts dir listing.
Definition: dir_access.h:132
Definition: dir_access.h:41