25 #ifndef INC_PATHUTIL_HPP_9D26D187_64D9_4224_8014_C7452B64B9EA
26 #define INC_PATHUTIL_HPP_9D26D187_64D9_4224_8014_C7452B64B9EA
40 std::vector<std::filesystem::path>
getDirectories(
const std::filesystem::path& p);
51 int compareFileName(
const std::filesystem::path& p1,
const std::filesystem::path& p2);
56 std::filesystem::path
constructPath(
const ArrayString& dirs,
const std::string& filename = std::string());
bool isFileNameValid(const std::string &filename)
Checks if the name of the file is valid.
std::vector< std::filesystem::path > getDirectories(const std::filesystem::path &p)
Gets directories of a path.
int compareFileName(const std::string &fn1, const std::string &fn2)
Compares two file names.
std::filesystem::path constructPath(const ArrayString &dirs, const std::string &filename)
Constructs a path from an array of directories and an optional filename.
ArrayString getDirectoriesAsArrayString(const std::filesystem::path &p)
Gets directories of a path.
std::filesystem::path ensureEndsWithPathSeparator(const std::filesystem::path &p)
Ensures the path ends with a path separator.
Common types for libxcks.
std::vector< std::string > ArrayString
Array of strings.