Go to the documentation of this file.
18 #ifndef viskores_io_FileUtils_h
19 #define viskores_io_FileUtils_h
31 VISKORES_IO_EXPORT
bool EndsWith(
const std::string& value,
const std::string& ending);
35 VISKORES_IO_EXPORT std::string
Filename(
const std::string& filePath);
39 VISKORES_IO_EXPORT std::string
ParentPath(
const std::string& filePath);
48 VISKORES_IO_EXPORT std::string
MergePaths(
const std::string& filePathPrefix,
49 const std::string& filePathSuffix);
54 const std::string& prefix);
64 #endif //viskores_io_FileUtils_h
std::string Filename(const std::string &filePath)
Returns the filename component of a filePath string.
char GetWindowsPathSeperator(const std::string &filePath)
determine which path separator to use for windows given a provided path Should return one of either '...
Groups connected points that have the same field value.
Definition: Atomic.h:27
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...
std::string ParentPath(const std::string &filePath)
Returns the directory component of a filePath string.
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...
bool EndsWith(const std::string &value, const std::string &ending)
Checks if a provided string ends with a specific substring.
bool CreateDirectoriesFromFilePath(const std::string &filePath)
Creates all the directories found in a given filePath component if they don't exist.