Cannot delete directory
See original GitHub issueI’m unable to delete an S3 directory, i.e. a path ending with /
using rm
nor bulk_delete
. There is no error raised but the actual directory does not get deleted.
Code to reproduce:
# Create a folder in an S3 bucket via S3 console
s3fs = S3FileSystem()
s3fs.rm('bucket/folder/')
# Observe the directory remained in S3
I guess this is the result of calling the S3FileSystem.split_path(path)
which calls the AbstractFileSystem._strip_protocol(path)
which also strips the trailing slash.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Can't Delete a File or Folder in Windows 10? Force Delete It
Tip 1. Close all open programs that might be currently using the file or folder. · Tip 2. Press Ctrl + Shift +...
Read more >Can't delete folder - Microsoft Community
Can't delete folder · Right-click on the file or folder and go to Properties window. · In the next window, you will see...
Read more >Can't Delete Folder? How to Force Delete Folder in Windows 10
1. Reboot your system · 2. Force delete folder in Windows 10 using CMD · 3. Use a specialized PC cleaning software ·...
Read more >[Solved] Unable to Delete a Folder In Windows 10 - mulcas
Option 1: Restart Windows File Explorer · Option 2: Remove the folder using Windows Command-line · Option 3: Rename the folder using Windows ......
Read more >Windows 10: Can´t Delete Folder or File - Here Is the Fix
The most common reason why you cannot delete a file is lack of user rights on the system. If your user account does...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will port https://github.com/dask/gcsfs/issues/273 to fix this
Thanks for the ping, I’ll look into it.