| 301 | } |
| 302 | |
| 303 | bool SubTreeFileSystem::Equals(const FileSystem& other) const { |
| 304 | if (this == &other) { |
| 305 | return true; |
| 306 | } |
| 307 | if (other.type_name() != type_name()) { |
| 308 | return false; |
| 309 | } |
| 310 | const auto& subfs = ::arrow::internal::checked_cast<const SubTreeFileSystem&>(other); |
| 311 | return base_path_ == subfs.base_path_ && base_fs_->Equals(subfs.base_fs_); |
| 312 | } |
| 313 | |
| 314 | Result<std::string> SubTreeFileSystem::PrependBase(const std::string& s) const { |
| 315 | RETURN_NOT_OK(ValidateSubPath(s)); |