1 #ifndef OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
2 #define OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
66 const std::string& directoryPath,
const std::vector<std::string>& extensions = {});
76 const std::string& directoryPath,
const std::string& extension);
86 const std::string& directoryPath,
const Extensions extensions);
92 OP_API void replaceAll(std::string& stringText,
const char charToChange,
const char charToAdd);
OP_API std::string getFileParentFolderPath(const std::string &fullPath)
OP_API std::vector< std::string > getFilesOnDirectory(const std::string &directoryPath, const std::vector< std::string > &extensions={})
OP_API std::string getFileExtension(const std::string &fullPath)
OP_API std::string getFileNameAndExtension(const std::string &fullPath)
OP_API void replaceAll(std::string &stringText, const char charToChange, const char charToAdd)
OP_API std::string getFileNameNoExtension(const std::string &fullPath)
OP_API bool existDirectory(const std::string &directoryPath)
OP_API void removeAllOcurrencesOfSubString(std::string &stringToModify, const std::string &substring)
OP_API std::string removeSpecialsCharacters(const std::string &stringToVariate)
OP_API std::string formatAsDirectory(const std::string &directoryPathString)
OP_API std::string getFullFilePathNoExtension(const std::string &fullPath)
OP_API bool existFile(const std::string &filePath)
OP_API void makeDirectory(const std::string &directoryPath)