| 603 | } |
| 604 | |
| 605 | Result<PlatformFilename> PlatformFilename::FromString(std::string_view file_name) { |
| 606 | RETURN_NOT_OK(ValidatePath(file_name)); |
| 607 | ARROW_ASSIGN_OR_RAISE(auto ns, StringToNative(file_name)); |
| 608 | return PlatformFilename(std::move(ns)); |
| 609 | } |
| 610 | |
| 611 | PlatformFilename PlatformFilename::Join(const PlatformFilename& child) const { |
| 612 | if (impl_->native_.empty() || impl_->native_.back() == kNativeSep) { |
nothing calls this directly
no test coverage detected