mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
fix (s3): rm merge
This commit is contained in:
parent
ade3c332e8
commit
e0b8bf2e70
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ func (s S3Backend) Rm(path string) error {
|
|||
client := s3.New(s.createSession(p.bucket))
|
||||
if p.bucket == "" {
|
||||
return ErrNotFound
|
||||
} else if strings.Contains(path, "/") == false {
|
||||
} else if strings.HasSuffix(path, "/") == false {
|
||||
_, err := client.DeleteObject(&s3.DeleteObjectInput{
|
||||
Bucket: aws.String(p.bucket),
|
||||
Key: aws.String(p.path),
|
||||
|
|
|
|||
Loading…
Reference in a new issue