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

Function MovePathUsingBlobsAPI

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

Source from the content-addressed store, hash-verified

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

Callers 1

MovePathFunction · 0.85

Calls 5

PathNotFoundFunction · 0.70
NotImplementedFunction · 0.50
emptyMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected