Static functions for accessing the file system. 更多...
#include <FileSystem.h>
静态 Public 成员函数 | |
static std::vector< std::string > | ListFolder (const std::string &folder_path, const std::string &wildcard_pattern) |
List (not recursively) regular files at folder_path matching wildcard_pattern. | |
static void | ValidateFilePath (std::string &filepath, const std::string &default_extension="") |
Convenient function to validate a path before creating a file. | |
Static functions for accessing the file system.
在文件 FileSystem.h 第 17 行定义.
|
static |
List (not recursively) regular files at folder_path matching wildcard_pattern.
std::invalid_argument | if folder does not exist. |
在文件 FileSystem.cpp 第 33 行定义.
引用了 carla::StringUtil::Match() , 以及 carla::throw_exception().
被这些函数引用 util::OpenDrive::GetAvailableFiles().
|
static |
Convenient function to validate a path before creating a file.
1) Ensures all the parent directories are created if missing. 2) If filepath is missing the extension, default_extension is appended to the path.
在文件 FileSystem.cpp 第 18 行定义.
被这些函数引用 carla::pointcloud::PointCloudIO::SaveToDisk(), carla::image::io::detail::io_resolver::write_view() , 以及 carla::client::FileTransfer::WriteFile().