41 namespace fs = filesystem;
53 fs::path file_path(file_name);
55 return file_path.exists();
60 fs::path file_path(file_name);
62 return file_path.remove_file();
67 fs::path dir_path(dir_name);
69 if (!dir_path.exists()) {
70 return fs::create_directories(dir_path);
78 fs::path dir_path(dir_name);
80 return fs::remove_directories(dir_path);
86 std::ofstream ofs(file_name);
92 #define P(...) __VA_ARGS__ 93 #define _INSTANTIATE_WRITE_(type) template void GALS::UTILITIES::FileUtils::write<type>(const std::string, const type&); bool fileExists(const std::string file_name) const
bool removeDirectory(const std::string dir_name) const
void setRootDirectory(const std::string root_dir)
const std::string getRootDirectory() const
void write(const std::string file_name, const T &field)
#define _INSTANTIATE_WRITE_(type)
bool removeFile(const std::string file_name) const
bool createDirectory(const std::string dir_name) const