2 #ifndef _NNDEPLOY_BASE_FILE_H_
3 #define _NNDEPLOY_BASE_FILE_H_
13 #define NNDEPLOY_PATH_SEP "\\"
15 #define NNDEPLOY_PATH_SEP "/"
39 const std::string &path);
58 const std::string &pattern,
59 std::vector<std::string> &result,
60 bool recursive =
false,
61 bool include_directories =
false);
74 const std::string &pattern,
75 std::vector<std::string> &result,
76 bool recursive =
false,
77 bool include_directories =
false);
#define NNDEPLOY_CC_API
api
bool createDirectories(const std::string &path_param)
bool isDirectory(const std::string &path)
std::string openFile(const std::string &file_path)
bool isPathSeparator(char c)
bool createDirectory(const std::string &path)
std::string getParentPath(const std::string &path)
std::string canonicalPath(const std::string &path)
Converts path p to a canonical absolute path Symlinks are processed if there is support for them on r...
void globRelative(const std::string &directory, const std::string &pattern, std::vector< std::string > &result, bool recursive=false, bool include_directories=false)
void removeAllFile(const std::string &path)
std::string joinPath(const std::string &base, const std::string &path)
bool exists(const std::string &path)
void glob(const std::string &directory, const std::string &pattern, std::vector< std::string > &result, bool recursive=false, bool include_directories=false)