| 609 | } |
| 610 | |
| 611 | PlatformFilename PlatformFilename::Join(const PlatformFilename& child) const { |
| 612 | if (impl_->native_.empty() || impl_->native_.back() == kNativeSep) { |
| 613 | return PlatformFilename(Impl{impl_->native_ + child.impl_->native_}); |
| 614 | } else { |
| 615 | return PlatformFilename(Impl{impl_->native_ + kNativeSep + child.impl_->native_}); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | Result<PlatformFilename> PlatformFilename::Join(std::string_view child_name) const { |
| 620 | ARROW_ASSIGN_OR_RAISE(auto child, |