Tom-Newton opened a new issue, #40052: URL: https://github.com/apache/arrow/issues/40052
### Describe the bug, including details regarding any error messages, version, and platform. Manually modifying https://github.com/apache/arrow/pull/40021 to run the Python tests from against a hierarchical namespace account has highlighted some missing test coverage in the existing C++ tests and some cases that we need to fix. Currently the following fail on hierarchical namespace storage accounts. ``` fs->CreateDir("directory/") ``` ``` fs->DeleteDir("directory/") ``` They fail with ``` Failed to delete a directory: directory/: https://tomtesthns.blob.core.windows.net/ea119933-c9d3-11ee-989a-71cec6336ac8/directory/ Azure Error: [InvalidUri] 400 The request URI is invalid. The request URI is invalid. RequestId:c9ad826a-101f-0005-5be0-5d0db4000000 Time:2024-02-12T18:24:12.9974541Z Request ID: c9ad826a-101f-0005-5be0-5d0db4000000 ``` Removing the trailing slash solves the problem. I haven't tested but I expect `DeleteDirContents` probably has the same issue. ### 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]
