mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #187] s3fs rm -rf do not removes dir #105
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vohaul on GitHub (May 12, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/187
Ubuntu 14.04
after
s3fs rm -rf sourceunder my own user (sudoer) directory becomes liked--------- 1 root root 0 Jan 1 1970 sourceShould it work this way?
@sqlbot commented on GitHub (May 13, 2015):
How was this directory originally created? With s3fs? Or perhaps a folder object in the AWS console? Does anything show in the AWS console, such as an empty folder or empty document? If a document, does it have any metadata?
@vohaul commented on GitHub (May 13, 2015):
It was a folder (not document) created via rails worker with
FileUtils::mkdir_p @upload_html. Before was a system call `system "mkdir -p #{@upload_html}"`` with the same result. Amazon console shows not empty folder full of unremoved content.@ggtakec commented on GitHub (Jan 17, 2016):
If the directory does not have any permission(d---------), the directory object on S3 is not existed or does not have any z-amz-meta-* HTTP header.
The reason is the object is uploaded by other S3 tools(ex, s3cmd/s3 console/etc).
So the directory which has no permission can not be removed by any user except root.
If you need to remove those directories, you should add permission for directories or remove those by root user.
(Please see FAQ)
I'm closing this issue, if you have any problem about this issue, please reopen this.
Regards,