Tom-Newton opened a new issue, #38335: URL: https://github.com/apache/arrow/issues/38335
### Describe the enhancement requested Implement `Result<FileInfo> AzureFileSystem::GetFileInfo(const std::string& path)`. Logic I think we need to apply. 1. Parse the string path to `AzurePath`. 2. If `path.container.empty()` then this is the root of the storage account. Its a directory and we don't really have any more info to add. 3. If `path.container.path_to_file.empty()` then this is the root of a container. Try to fetch properties of the container. If the container exists and not `IsDeleted()` then its a directory and probably we can add the last modified time. 4. Call BlobClient::GetProperties(). If the storage account is hierarchical namespace it possible that we will get the properties for a directory, so we should always check this https://github.com/Azure/azure-sdk-for-cpp/blob/dd236311193c6a3debf3b12c47f14e49a20c72c7/sdk/storage/azure-storage-files-datalake/src/datalake_utilities.cpp#L86-L91. All of this only needs the simple blob endpoints - nothing exclusive to hierarchical namespace enabled accounts. The other GetFileInfo method requires doing directory listing which will be some additional complexity so I propose implementing that in a separate PR. **Related Issues:** - https://github.com/apache/arrow/issues/18014 (is a child of) ### Component(s) C++ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
