31 const std::string &content,
32 bool append =
false)
const = 0;
44 const std::vector<uint8_t> &data,
45 bool append =
false)
const = 0;
57 const std::vector<std::string> &lines,
58 bool append =
false)
const = 0;
Interface for writing file content.
Definition IFileWriter.hpp:17
virtual Result< void, FileError > writeLines(const std::filesystem::path &filePath, const std::vector< std::string > &lines, bool append=false) const =0
Write lines to file (each string becomes one line)
virtual Result< void, FileError > writeBytes(const std::filesystem::path &filePath, const std::vector< uint8_t > &data, bool append=false) const =0
Write binary data to file.
virtual ~IFileWriter()=default
virtual Result< void, FileError > write(const std::filesystem::path &filePath, const std::string &content, bool append=false) const =0
Write string content to file.
virtual Result< void, FileError > touch(const std::filesystem::path &filePath) const =0
Create empty file or update timestamp of existing file.
Definition UtilsError.hpp:93
Definition DirectoryManager.cpp:5