| 293 | } |
| 294 | |
| 295 | Result<std::string> LocalFileSystem::MakeUri(std::string path) const { |
| 296 | ARROW_ASSIGN_OR_RAISE(path, DoNormalizePath(std::move(path))); |
| 297 | if (!internal::DetectAbsolutePath(path)) { |
| 298 | return Status::Invalid("MakeUri requires an absolute path, got ", path); |
| 299 | } |
| 300 | ARROW_ASSIGN_OR_RAISE(auto uri, util::UriFromAbsolutePath(path)); |
| 301 | if (uri[0] == '/') { |
| 302 | uri = "file://" + uri; |
| 303 | } |
| 304 | return uri + (options_.use_mmap ? "?use_mmap" : ""); |
| 305 | } |
| 306 | |
| 307 | bool LocalFileSystem::Equals(const FileSystem& other) const { |
| 308 | if (other.type_name() != type_name()) { |
nothing calls this directly
no test coverage detected