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

Function CreateContainerFromPath

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

Source from the content-addressed store, hash-verified

3080 }
3081
3082 Status CreateContainerFromPath(const AzureLocation& src, const AzureLocation& dest) {
3083 DCHECK(!src.container.empty() && !src.path.empty());
3084 DCHECK(!dest.empty() && dest.path.empty());
3085 ARROW_ASSIGN_OR_RAISE(auto src_file_info, GetFileInfoOfPathWithinContainer(src));
3086 switch (src_file_info.type()) {
3087 case FileType::Unknown:
3088 case FileType::NotFound:
3089 return PathNotFound(src);
3090 case FileType::File:
3091 return Status::Invalid(
3092 "Creating files at '/' is not possible, only directories.");
3093 case FileType::Directory:
3094 break;
3095 }
3096 if (src.container == dest.container) {
3097 return InvalidDirMoveToSubdir(src, dest);
3098 }
3099 return CrossContainerMoveNotImplemented(src, dest);
3100 }
3101
3102 Status MovePathWithDataLakeAPI(
3103 const DataLake::DataLakeFileSystemClient& src_adlfs_client,

Callers

nothing calls this directly

Calls 6

InvalidDirMoveToSubdirFunction · 0.85
PathNotFoundFunction · 0.70
InvalidFunction · 0.50
emptyMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected