3 #include "../../../../../core/error.h"
24 bool createIfNotExistent =
true);
27 const std::filesystem::path& p);
30 const std::filesystem::path& p,
31 bool createIfNotExistent =
true);
33 bool checkIfFileExists(
const std::filesystem::path& mPath,
const std::filesystem::path& p);
35 void ensureFileExists(
const std::filesystem::path& mPath,
const std::filesystem::path& p);
38 const std::filesystem::path& p,
39 const std::vector<unsigned char>&
data);
42 const std::filesystem::path& p,
43 const std::vector<unsigned char>&
data,
44 const unsigned int maxTries = 100,
45 const unsigned int sleepTimeMs = 10);
47 std::vector<unsigned char>
readDataFromFile(
const std::filesystem::path& mPath,
48 const std::filesystem::path& p);
51 const std::filesystem::path& p);
53 std::vector<std::string>
getAllFiles(
const std::filesystem::path& mPath,
54 const std::filesystem::path& p);