Functions | |
cv::String | canonical (const cv::String &path) |
Converts path p to a canonical absolute path Symlinks are processed if there is support for them on running platform. More... | |
bool | createDirectories (const cv::String &path) |
bool | createDirectory (const cv::String &path) |
bool | exists (const cv::String &path) |
cv::String | getcwd () |
cv::String | getParent (const cv::String &path) |
Get parent directory. More... | |
std::wstring | getParent (const std::wstring &path) |
void | glob (const cv::String &directory, const cv::String &pattern, std::vector< cv::String > &result, bool recursive=false, bool includeDirectories=false) |
Generate a list of all files that match the globbing pattern. More... | |
void | glob_relative (const cv::String &directory, const cv::String &pattern, std::vector< cv::String > &result, bool recursive=false, bool includeDirectories=false) |
Generate a list of all files that match the globbing pattern. More... | |
bool | isDirectory (const cv::String &path) |
cv::String | join (const cv::String &base, const cv::String &path) |
Join path components. More... | |
void | remove_all (const cv::String &path) |
cv::String cv::utils::fs::canonical | ( | const cv::String & | path | ) |
Converts path p to a canonical absolute path Symlinks are processed if there is support for them on running platform.
path | input path. Target file/directory should exist. |
bool cv::utils::fs::createDirectories | ( | const cv::String & | path | ) |
bool cv::utils::fs::createDirectory | ( | const cv::String & | path | ) |
bool cv::utils::fs::exists | ( | const cv::String & | path | ) |
cv::String cv::utils::fs::getcwd | ( | ) |
cv::String cv::utils::fs::getParent | ( | const cv::String & | path | ) |
Get parent directory.
std::wstring cv::utils::fs::getParent | ( | const std::wstring & | path | ) |
void cv::utils::fs::glob | ( | const cv::String & | directory, |
const cv::String & | pattern, | ||
std::vector< cv::String > & | result, | ||
bool | recursive = false , |
||
bool | includeDirectories = false |
||
) |
Generate a list of all files that match the globbing pattern.
Result entries are prefixed by base directory path.
directory | base directory | |
pattern | filter pattern (based on '*'/'?' symbols). Use empty string to disable filtering and return all results | |
[out] | result | result of globing. |
recursive | scan nested directories too | |
includeDirectories | include directories into results list |
void cv::utils::fs::glob_relative | ( | const cv::String & | directory, |
const cv::String & | pattern, | ||
std::vector< cv::String > & | result, | ||
bool | recursive = false , |
||
bool | includeDirectories = false |
||
) |
Generate a list of all files that match the globbing pattern.
directory | base directory | |
pattern | filter pattern (based on '*'/'?' symbols). Use empty string to disable filtering and return all results | |
[out] | result | globbing result with relative paths from base directory |
recursive | scan nested directories too | |
includeDirectories | include directories into results list |
bool cv::utils::fs::isDirectory | ( | const cv::String & | path | ) |
cv::String cv::utils::fs::join | ( | const cv::String & | base, |
const cv::String & | path | ||
) |
Join path components.
void cv::utils::fs::remove_all | ( | const cv::String & | path | ) |