| 3235 | } |
| 3236 | |
| 3237 | Status MovePath(const AzureLocation& src, const AzureLocation& dest) { |
| 3238 | DCHECK(!src.container.empty() && !src.path.empty()); |
| 3239 | DCHECK(!dest.container.empty() && !dest.path.empty()); |
| 3240 | auto src_adlfs_client = GetFileSystemClient(src.container); |
| 3241 | ARROW_ASSIGN_OR_RAISE(auto hns_support, |
| 3242 | HierarchicalNamespaceSupport(src_adlfs_client)); |
| 3243 | if (hns_support == HNSSupport::kContainerNotFound) { |
| 3244 | return PathNotFound(src); |
| 3245 | } |
| 3246 | if (hns_support == HNSSupport::kEnabled) { |
| 3247 | return MovePathWithDataLakeAPI(src_adlfs_client, src, dest); |
| 3248 | } |
| 3249 | DCHECK_EQ(hns_support, HNSSupport::kDisabled); |
| 3250 | return MovePathUsingBlobsAPI(src, dest); |
| 3251 | } |
| 3252 | |
| 3253 | Status CopyFile(const AzureLocation& src, const AzureLocation& dest) { |
| 3254 | RETURN_NOT_OK(ValidateFileLocation(src)); |
nothing calls this directly
no test coverage detected