36 std::string join_path(
const std::string &left,
const std::string &right);
52 std::string file_name_from_path(std::string_view path);
70 bool try_get_file_size(std::string_view path, std::uint64_t *sizeBytes =
nullptr);
79 bool path_has_prefix(
const std::string &path,
const std::string &prefix);
bool ensure_directory_exists(const std::string &directoryPath, std::string *errorMessage)
Ensure that a directory path exists, creating missing segments as needed.
Definition filesystem_utils.cpp:112
char preferred_path_separator()
Return the preferred path separator for the active platform.
Definition filesystem_utils.cpp:74
std::string parent_directory(std::string_view filePath)
Return the parent directory portion of a file path.
Definition filesystem_utils.cpp:99
bool is_path_separator(char character)
Return whether a character is recognized as a path separator.
Definition filesystem_utils.cpp:82