40 #ifndef __OPENFLUID_TOOLS_FILESYSTEM_HPP__
41 #define __OPENFLUID_TOOLS_FILESYSTEM_HPP__
69 #if defined(OPENFLUID_OS_UNIX)
71 #elif defined(OPENFLUID_OS_WINDOWS)
81 #if defined(OPENFLUID_OS_UNIX)
83 #elif defined(OPENFLUID_OS_WINDOWS)
94 static std::string
joinPath(
const std::vector<std::string>& PathParts);
116 [[deprecated]]
static std::string
dirname(
const std::string&
Path);
199 static bool copyFile(
const std::string& SrcPath,
const std::string& DestPath);
207 static bool renameFile(
const std::string& OriginalPath,
const std::string& NewPath);
219 static bool copyDirectory(
const std::string& SrcPath,
const std::string& DestPath,
220 bool WithBaseDir =
false,
bool RemoveExisting =
false);
238 static bool emptyDirectory(
const std::string&
Path,
const std::vector<std::string>& PathsToExlude = {});
247 bool WithPath =
false,
const std::string& Pattern =
"");
256 bool WithPath =
false,
const std::string& Pattern =
"");
266 const std::string& Ext,
267 bool WithPath =
false,
268 bool ExtIncludeDot =
false);
279 const std::string& Suffix,
280 const std::string& Ext,
281 bool WithPath =
false,
282 bool ExtIncludeDot =
false);
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: ApplicationException.hpp:47