fiw review
This commit is contained in:
parent
451649e915
commit
b317fcea0e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func downloadFile(url string, destPath string) error {
|
|||
return fmt.Errorf("download response 'HTTP %d' : %s", resp.StatusCode, string(body))
|
||||
}
|
||||
|
||||
file, err := os.OpenFile(destPath, os.O_RDWR|os.O_CREATE, 0644)
|
||||
file, err := os.OpenFile(destPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue