| 2226 | } |
| 2227 | |
| 2228 | Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const AzureLocation& location, |
| 2229 | AzureFileSystem* fs) { |
| 2230 | RETURN_NOT_OK(ValidateFileLocation(location)); |
| 2231 | auto blob_client = std::make_shared<Blobs::BlobClient>( |
| 2232 | GetBlobClient(location.container, location.path)); |
| 2233 | |
| 2234 | auto ptr = std::make_shared<ObjectInputFile>(blob_client, fs->io_context(), |
| 2235 | std::move(location)); |
| 2236 | RETURN_NOT_OK(ptr->Init()); |
| 2237 | return ptr; |
| 2238 | } |
| 2239 | |
| 2240 | Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const FileInfo& info, |
| 2241 | AzureFileSystem* fs) { |
nothing calls this directly
no test coverage detected