client/storage_local.go: os.Create is for opening files as writable
This commit is contained in:
parent
24253d2e1e
commit
49b0f75714
@ -61,7 +61,7 @@ func (ls *LocalStorage) Get(filename string, hash string) error {
|
||||
}
|
||||
defer infile.Close()
|
||||
|
||||
outfile, err := os.Open(filename)
|
||||
outfile, err := os.Create(filename)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user