40 #ifndef __OPENFLUID_TOOLS_FILESYSTEM_HPP__ 41 #define __OPENFLUID_TOOLS_FILESYSTEM_HPP__ 62 #if defined(OPENFLUID_OS_UNIX) 64 #elif defined(OPENFLUID_OS_WINDOWS) 71 #if defined(OPENFLUID_OS_UNIX) 73 #elif defined(OPENFLUID_OS_WINDOWS) 84 static std::string joinPath(
const std::vector<std::string>& PathParts);
92 static std::string filename(
const std::string& Path);
100 static std::string basename(
const std::string& Path);
108 static std::string dirname(
const std::string& Path);
116 static std::string extension(
const std::string& Path);
122 static std::string currentPath();
129 static bool isDirectory(
const std::string& Path);
136 static bool isFile(
const std::string& Path);
144 static bool makeDirectory(
const std::string& Path);
151 static bool removeDirectory(
const std::string& Path);
161 static std::string makeUniqueSubdirectory(
const std::string& Path,
const std::string& SubdirName);
171 static std::string makeUniqueFile(
const std::string& Path,
const std::string& FileName);
179 static bool removeFile(
const std::string& Path);
187 static bool copyFile(
const std::string& SrcPath,
const std::string& DestPath);
197 static bool copyDirectory(
const std::string& SrcPath,
const std::string& DestPath,
198 const bool DontCopyDotDirs =
false);
Definition: Filesystem.hpp:53
Definition: ApplicationException.hpp:47
static constexpr char pathsListSeparator() noexcept
Definition: Filesystem.hpp:60
static constexpr char pathSeparator() noexcept
Definition: Filesystem.hpp:69
#define OPENFLUID_API
Definition: dllexport.hpp:86