MCPcopy Create free account
hub / github.com/apache/arrow / MovePath

Function MovePath

cpp/src/arrow/filesystem/azurefs.cc:3237–3251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 4

MovePathWithDataLakeAPIFunction · 0.85
MovePathUsingBlobsAPIFunction · 0.85
PathNotFoundFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected