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

Method GetFileInfo

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

Source from the content-addressed store, hash-verified

3324}
3325
3326Result<FileInfo> AzureFileSystem::GetFileInfo(const std::string& path) {
3327 ARROW_ASSIGN_OR_RAISE(auto location, AzureLocation::FromString(path));
3328 if (location.container.empty()) {
3329 DCHECK(location.path.empty());
3330 // Root directory of the storage account.
3331 return FileInfo{"", FileType::Directory};
3332 }
3333 if (location.path.empty()) {
3334 // We have a container, but no path within the container.
3335 // The container itself represents a directory.
3336 auto container_client = impl_->GetBlobContainerClient(location.container);
3337 return GetContainerPropsAsFileInfo(location, container_client);
3338 }
3339 return impl_->GetFileInfoOfPathWithinContainer(location);
3340}
3341
3342Result<FileInfoVector> AzureFileSystem::GetFileInfo(const FileSelector& select) {
3343 Core::Context context;

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45

Tested by

no test coverage detected