28 #ifndef AGS_SHARED_UTIL_DIRECTORY_H 29 #define AGS_SHARED_UTIL_DIRECTORY_H 31 #include "common/fs.h" 32 #include "common/stack.h" 33 #include "common/std/memory.h" 34 #include "ags/shared/core/platform.h" 35 #include "ags/shared/util/string.h" 41 extern const char *SAVE_FOLDER_PREFIX;
46 bool CreateDirectory(
const String &path);
49 bool CreateAllDirectories(
const String &parent,
const String &sub_dirs);
51 String SetCurrentDirectory(
const String &path);
53 String GetCurrentDirectory();
70 bool do_file,
bool do_dir);
76 return Open(path, wildcard,
true,
false);
79 return Open(path, wildcard,
false,
true);
82 return (_index >= (
int)_files.
size());
85 return AtEnd() ?
String() :
String(_files[_index].getName().c_str());
97 size_t max_level = -1);
100 return _ffile.AtEnd();
109 bool PushDir(
const String &sub);
115 uint32_t _maxLevel = SIZE_MAX;
Definition: achievements_tables.h:27
Definition: directory.h:91
Definition: directory.h:62
size_type size() const
Definition: array.h:318