75 static bool directoryExists(
const std::string &path);
84 static int32_t isDirectory(
const std::string &path,
bool &result);
92 static bool linkExists(
const std::string &path);
101 static bool createDirectory(
const std::string &path, uint32_t mode);
110 static std::string getFileContent(
const std::string &filename);
119 static std::vector<char> getBinaryFileContent(
const std::string &filename, uint32_t maxBytes = 0);
127 static std::vector<uint8_t> getUBinaryFileContent(
const std::string &filename);
145 static bool fileExists(
const std::string &filename);
153 static void writeFile(
const std::string &filename,
const std::string &content);
162 static void writeFile(
const std::string &filename,
const std::vector<char> &content, uint32_t length);
171 static void writeFile(
const std::string &filename,
const std::vector<uint8_t> &content, uint32_t length);
179 static void appendToFile(
const std::string &filename,
const std::string &content);
188 static void appendToFile(
const std::string &filename,
const std::vector<char> &content, uint32_t length);
197 static void appendToFile(
const std::string &filename,
const std::vector<uint8_t> &content, uint32_t length);
206 static std::vector<std::string> getFiles(
const std::string &path,
bool recursive =
false);
215 static std::vector<std::string> getDirectories(
const std::string &path,
bool recursive =
false);
223 static int32_t getFileLastModifiedTime(
const std::string &filename);
232 bool copyFile(
const std::string &source,
const std::string &dest);
241 static bool moveFile(
const std::string &source,
const std::string &dest);
249 static bool deleteFile(
const std::string &file) noexcept;
259 static bool writeLockFile(
int fileDescriptor,
bool wait);
269 static bool readLockFile(
int fileDescriptor,
bool wait);
277 std::string sha512(
const std::string &file);
This is the base library main class.
Definition: BaseLib.h:95
The class only makes sure that the vector is not copyable and the data is zeroed on destruction...
Definition: Io.h:40
Definition: BaseLib.cpp:34
This class provides functions to make your life easier.
Definition: Io.h:48