40 #ifndef __OPENFLUID_TOOLS_FILESYSTEM_HPP__ 41 #define __OPENFLUID_TOOLS_FILESYSTEM_HPP__ 67 static std::string joinPath(
const std::vector<std::string>& PathParts);
78 static std::string filename(
const std::string& Path);
89 static std::string basename(
const std::string& Path);
100 static std::string dirname(
const std::string& Path);
111 static std::string extension(
const std::string& Path);
117 static std::string currentPath();
124 static bool isDirectory(
const std::string& Path);
131 static bool isFile(
const std::string& Path);
139 static bool makeDirectory(
const std::string& Path);
146 static bool removeDirectory(
const std::string& Path);
156 static std::string makeUniqueSubdirectory(
const std::string& Path,
const std::string& SubdirName);
166 static std::string makeUniqueFile(
const std::string& Path,
const std::string& FileName);
174 static bool removeFile(
const std::string& Path);
182 static bool copyFile(
const std::string& SrcPath,
const std::string& DestPath);
192 static bool copyDirectory(
const std::string& SrcPath,
const std::string& DestPath,
193 const bool DontCopyDotDirs =
false);
#define OPENFLUID_API
Definition: dllexport.hpp:87
Definition: Filesystem.hpp:53
Definition: ApplicationException.hpp:47