MCPcopy Create free account
hub / github.com/apache/arrow / PathFromUri

Method PathFromUri

cpp/src/arrow/filesystem/mockfs.cc:441–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439bool MockFileSystem::Equals(const FileSystem& other) const { return this == &other; }
440
441Result<std::string> MockFileSystem::PathFromUri(const std::string& uri_string) const {
442 ARROW_ASSIGN_OR_RAISE(
443 std::string parsed_path,
444 internal::PathFromUriHelper(uri_string, {"mock"}, /*accept_local_paths=*/true,
445 internal::AuthorityHandlingBehavior::kDisallow));
446 return std::string(internal::RemoveLeadingSlash(parsed_path));
447}
448
449Status MockFileSystem::CreateDir(const std::string& path, bool recursive) {
450 RETURN_NOT_OK(ValidatePath(path));

Callers

nothing calls this directly

Calls 1

RemoveLeadingSlashFunction · 0.85

Tested by

no test coverage detected