diff options
Diffstat (limited to 'aws.go')
-rw-r--r-- | aws.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -317,6 +317,9 @@ func (a *AwsConn) Download(bucket string, key string, path string) error { Bucket: aws.String(bucket), Key: &key, }) + if err != nil { + _ = os.Remove(path) + } return err } |