| 3324 | } |
| 3325 | |
| 3326 | Result<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 | |
| 3342 | Result<FileInfoVector> AzureFileSystem::GetFileInfo(const FileSelector& select) { |
| 3343 | Core::Context context; |
nothing calls this directly
no test coverage detected