jorisvandenbossche commented on issue #38821: URL: https://github.com/apache/arrow/issues/38821#issuecomment-1820752234
And a pyarrow reproducer that you can just copy-paste into `test_fs.py` to use the minio s3 server setup of pytest: ```python def test_delete_dir_s3_double_slash(s3fs): fs = s3fs["fs"] pathfn = s3fs["pathfn"] # the bucket already includes a backslash, so this creates "bucket//test_dir" d = pathfn('/test_dir') # s3fs allows you to create this, but not delete fs.create_dir(d) fs.delete_dir(d) dir_info = fs.get_file_info(d) assert dir_info.type == FileType.NotFound ``` This is written specifically using `s3fs` instead of the parametrized `fs`. At least for LocalFileSystem, we raise an error when trying the create the file (*"Cannot create directory '/test_dir'. Detail: [errno 13] Permission denied"*) -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org