From 49b0f7571496078ec49a7828f088dc6831982a4b Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 24 Jul 2013 22:14:42 -0400 Subject: [PATCH] client/storage_local.go: os.Create is for opening files as writable --- client/storage_local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/storage_local.go b/client/storage_local.go index 2c99c23..29f5d82 100644 --- a/client/storage_local.go +++ b/client/storage_local.go @@ -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 }