12using namespace MaxOS::common;
13using namespace MaxOS::filesystem;
24 if (
path.length() == 0)
58 for (
size_t i = 0; i <
path.length(); i++)
81 for (
size_t i = 0; i <
path.length(); i++)
105 for (
size_t i = 0; i <
path.length(); i++)
129 for (
size_t i = 0; i <
path.length(); i++)
152 for (
size_t i = 0; i <
path.length(); i++)
Stores the left, top, width and height of a rectangle.
static string file_extension(const string &path)
Try to get the file extension from a path (assumes split by ".")
static string parent_directory(const string &path)
Get the parent directory of the path.
static bool valid(const string &path)
Check if a path is valid.
static bool is_file(const string &path)
Check if a path is a file.
static string file_name(const string &path)
Get the file name component of a path if it exists or an empty string.
static string top_directory(const string &path)
Get the top directory of a path.
static string file_path(const string &path)
Finds the path to the directory the file is in.
static string join_path(const string &base, const string &extended)
Joins two paths together.
static string absolute_path(const string &path)
Calculates path with out any "../" or "./".
Provides utilities for handling file and directory paths.