client/storage_local.go: os.Create is for opening files as writable

This commit is contained in:
Aaron Lindsay 2013-07-24 22:14:42 -04:00
parent 24253d2e1e
commit 49b0f75714

View File

@ -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
} }