@@ -17,7 +17,7 @@ package remotestorage
1717import (
1818 "context"
1919 "fmt"
20- "io/ioutil "
20+ "os "
2121 "path/filepath"
2222 "strings"
2323
@@ -91,9 +91,9 @@ func (g *GoogleCloudStorage) UploadFile(bucket, src, dst string, opts ...OpOptio
9191 }
9292
9393 g .lg .Info ("uploading" , zap .String ("source" , src ), zap .String ("destination" , dst ))
94- bts , err := ioutil .ReadFile (src )
94+ bts , err := os .ReadFile (src )
9595 if err != nil {
96- return fmt .Errorf ("ioutil .ReadFile(%s) %v" , src , err )
96+ return fmt .Errorf ("os .ReadFile(%s) %v" , src , err )
9797 }
9898 if _ , err := wc .Write (bts ); err != nil {
9999 return err
@@ -144,9 +144,9 @@ func (g *GoogleCloudStorage) UploadDir(bucket, src, dst string, opts ...OpOption
144144 if ret .ContentType != "" {
145145 wc .ContentType = ret .ContentType
146146 }
147- bts , err := ioutil .ReadFile (fpath )
147+ bts , err := os .ReadFile (fpath )
148148 if err != nil {
149- errc <- fmt .Errorf ("ioutil .ReadFile(%s) %v" , fpath , err )
149+ errc <- fmt .Errorf ("os .ReadFile(%s) %v" , fpath , err )
150150 return
151151 }
152152 if _ , err := wc .Write (bts ); err != nil {
0 commit comments