OpenCV 4.5.3(日本語機械翻訳)
filesystem.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4
5 #ifndef OPENCV_UTILS_FILESYSTEM_HPP
6 #define OPENCV_UTILS_FILESYSTEM_HPP
7
8 namespace cv { namespace utils { namespace fs {
9
10
11CV_EXPORTS bool exists(const cv::String& path);
12CV_EXPORTS bool isDirectory(const cv::String& path);
13
14CV_EXPORTS void remove_all(const cv::String& path);
15
16
17CV_EXPORTS cv::String getcwd();
18
24CV_EXPORTS cv::String canonical(const cv::String& path);
25
27CV_EXPORTS cv::String join(const cv::String& base, const cv::String& path);
28
30CV_EXPORTS cv::String getParent(const cv::String &path);
31CV_EXPORTS std::wstring getParent(const std::wstring& path);
32
44CV_EXPORTS void glob(const cv::String& directory, const cv::String& pattern,
45 CV_OUT std::vector<cv::String>& result,
46 bool recursive = false, bool includeDirectories = false);
47
57CV_EXPORTS void glob_relative(const cv::String& directory, const cv::String& pattern,
58 CV_OUT std::vector<cv::String>& result,
59 bool recursive = false, bool includeDirectories = false);
60
61
62CV_EXPORTS bool createDirectory(const cv::String& path);
63CV_EXPORTS bool createDirectories(const cv::String& path);
64
65 #ifdef __OPENCV_BUILD
66 // TODO
67 //CV_EXPORTS cv::String getTempDirectory();
68
76CV_EXPORTS cv::String getCacheDirectory(const char* sub_directory_name, const char* configuration_name = NULL);
77
78 #endif
79
80}}} // namespace
81
82 #endif // OPENCV_UTILS_FILESYSTEM_HPP
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75