OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
fileSystem.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
2 #define OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
3 
5 
6 namespace op
7 {
8  OP_API void mkdir(const std::string& directoryPath);
9 
10  OP_API bool exist(const std::string& directoryPath);
11 
12  OP_API bool isDirectory(const std::string& directoryPath);
13 
20  OP_API std::string formatAsDirectory(const std::string& directoryPathString);
21 
27  OP_API std::string getFileNameAndExtension(const std::string& fullPath);
28 
34  OP_API std::string getFileNameNoExtension(const std::string& fullPath);
35 
41  OP_API std::string getFileExtension(const std::string& fullPath);
42 
50  OP_API std::vector<std::string> getFilesOnDirectory(const std::string& directoryPath, const std::vector<std::string>& extensions = {});
51 
59  OP_API std::vector<std::string> getFilesOnDirectory(const std::string& directoryPath, const std::string& extension);
60 }
61 
62 #endif // OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
OP_API std::string getFileExtension(const std::string &fullPath)
OP_API bool exist(const std::string &directoryPath)
OP_API std::string getFileNameAndExtension(const std::string &fullPath)
OP_API std::string getFileNameNoExtension(const std::string &fullPath)
OP_API bool isDirectory(const std::string &directoryPath)
OP_API std::string formatAsDirectory(const std::string &directoryPathString)
#define OP_API
Definition: macros.hpp:5
OP_API void mkdir(const std::string &directoryPath)
OP_API std::vector< std::string > getFilesOnDirectory(const std::string &directoryPath, const std::vector< std::string > &extensions={})