38 static std::vector<std::string>
files(
const std::string &path,
bool return_full_path_names =
true);
56 static bool remove(
const std::string &dir_name,
bool delete_files =
false,
bool delete_sub_directories =
false);
static std::vector< std::string > directories(const std::string &path, bool return_full_path_names=true)
Returns all subdirectories in a directory.
static bool create(const std::string &dir_name, bool recursive=false)
Create directory.
static std::string current()
Get current directory.
static std::string resourcedata(const std::string &application_name, const std::string &data_dir_name="Resources")
Returns the application resource data directory.
static std::string appdata(const std::string &company_name, const std::string &application_name, const std::string &version, bool create_dirs_if_missing=true)
Returns the current user's roaming application data directory.
Directory utility class.
Definition: directory.h:34
static bool rename(const std::string &old_name, const std::string &new_name)
Rename directory.
static std::string local_appdata(const std::string &company_name, const std::string &application_name, const std::string &version, bool create_dirs_if_missing=true)
Returns the current user's local (nonroaming) application data directory.
static std::vector< std::string > files(const std::string &path, bool return_full_path_names=true)
Returns all files in a directory.
Definition: Application/application.h:35
static bool set_current(const std::string &dir_name)
Change current directory.