Go to the documentation of this file.
10 #ifndef vtk_m_io_FileUtils_h
11 #define vtk_m_io_FileUtils_h
41 const std::string& filePathSuffix);
46 const std::string& prefix);
56 #endif //vtk_m_io_FileUtils_h
bool CreateDirectoriesFromFilePath(const std::string &filePath)
Creates all the directories found in a given filePath component if they don't exist.
Groups connected points that have the same field value.
Definition: Atomic.h:19
char GetWindowsPathSeperator(const std::string &filePath)
determine which path separator to use for windows given a provided path Should return one of either '...
std::string Filename(const std::string &filePath)
Returns the filename component of a filePath string.
#define VTKM_IO_EXPORT
Definition: vtkm_io_export.h:44
std::string PrefixStringToFilename(const std::string &filePath, const std::string &prefix)
Takes the supplied prefix and prepends it to the filename for the provided filePath EX: PrefixStringT...
std::string ParentPath(const std::string &filePath)
Returns the directory component of a filePath string.
std::string MergePaths(const std::string &filePathPrefix, const std::string &filePathSuffix)
Merges two filepath strings together using the correct system filepath seperator EX: MergePaths("path...
bool EndsWith(const std::string &value, const std::string &ending)
Checks if a provided string ends with a specific substring.