kou commented on code in PR #41068:
URL: https://github.com/apache/arrow/pull/41068#discussion_r1558759604
##########
cpp/src/arrow/filesystem/azurefs.cc:
##########
@@ -2168,13 +2203,6 @@ class AzureFileSystem::Impl {
// All the others either succeed or throw an exception.
DCHECK(response.Value.Deleted);
} catch (const Storage::StorageException& exception) {
- if (exception.ErrorCode == "FilesystemNotFound" ||
- exception.ErrorCode == "PathNotFound") {
- if (require_dir_to_exist) {
- return PathNotFound(location);
- }
- return Status::OK();
- }
Review Comment:
If we add a trailing slash, API returns an error...:
```text
'fs->DeleteDir("AB/CD")' failed with IOError: Failed to delete a directory:
AB/CD:
https://clearcodearrow.blob.core.windows.net/aeouspyxzsz16iliz71ya6yt5qrur6b9/AB/CD/
Azure Error: [InvalidUri] 400 The request URI is invalid.
```
--
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]