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()
|
defer infile.Close()
|
||||||
|
|
||||||
outfile, err := os.Open(filename)
|
outfile, err := os.Create(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user