| 3220 | } |
| 3221 | |
| 3222 | Status MovePathUsingBlobsAPI(const AzureLocation& src, const AzureLocation& dest) { |
| 3223 | DCHECK(!src.container.empty() && !src.path.empty()); |
| 3224 | DCHECK(!dest.container.empty() && !dest.path.empty()); |
| 3225 | if (src.container != dest.container) { |
| 3226 | ARROW_ASSIGN_OR_RAISE(auto src_file_info, GetFileInfoOfPathWithinContainer(src)); |
| 3227 | if (src_file_info.type() == FileType::NotFound) { |
| 3228 | return PathNotFound(src); |
| 3229 | } |
| 3230 | return CrossContainerMoveNotImplemented(src, dest); |
| 3231 | } |
| 3232 | return Status::NotImplemented( |
| 3233 | "FileSystem::Move() is not implemented for Azure Storage accounts " |
| 3234 | "without Hierarchical Namespace support (see arrow/issues/40405)."); |
| 3235 | } |
| 3236 | |
| 3237 | Status MovePath(const AzureLocation& src, const AzureLocation& dest) { |
| 3238 | DCHECK(!src.container.empty() && !src.path.empty()); |
no test coverage detected