mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-06 15:55:30 +01:00
Merge branch 'master' of https://github.com/mickael-kerjean/filestash
This commit is contained in:
commit
f3c4bdb8a8
1 changed files with 0 additions and 8 deletions
|
|
@ -226,14 +226,6 @@ func (s S3Backend) Rm(path string) error {
|
|||
return NewError("Doesn't exist", 404)
|
||||
}
|
||||
|
||||
if !strings.HasSuffix(p.path, "/") {
|
||||
_, err := client.DeleteObject(&s3.DeleteObjectInput{
|
||||
Bucket: aws.String(p.bucket),
|
||||
Key: &p.path,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
objs, err := client.ListObjects(&s3.ListObjectsInput{
|
||||
Bucket: aws.String(p.bucket),
|
||||
Prefix: aws.String(p.path),
|
||||
|
|
|
|||
Loading…
Reference in a new issue