mirror of
https://github.com/rclone/rclone.git
synced 2025-12-10 13:23:21 +00:00
swift, s3, googlecloudstorage: Don't delete the container/bucket if fs wasn't at root - fixes #172
This commit is contained in:
5
s3/s3.go
5
s3/s3.go
@@ -487,10 +487,13 @@ func (f *Fs) Mkdir() error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Rmdir deletes the bucket
|
||||
// Rmdir deletes the bucket if the fs is at the root
|
||||
//
|
||||
// Returns an error if it isn't empty
|
||||
func (f *Fs) Rmdir() error {
|
||||
if f.root != "" {
|
||||
return nil
|
||||
}
|
||||
req := s3.DeleteBucketInput{
|
||||
Bucket: &f.bucket,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user