14 inline const std::map<std::string, std::string>
EscapeTable = {{
"/",
"|"}};
16 std::string
escapeName(
const std::string& segmentName);
18 std::string
unescapeName(
const std::string& escapedName);
35 bool fileExists(
const std::filesystem::path& p);
39 void ensureFileExists(
const std::filesystem::path& p,
bool createIfNotExistent =
false);
41 void writeDataToFile(
const std::filesystem::path& p,
const std::vector<unsigned char>&
data);
45 std::vector<std::filesystem::path>
getAllDirectories(
const std::filesystem::path& p);
47 std::vector<std::filesystem::path>
getAllFiles(
const std::filesystem::path& p);