@@ -17,7 +17,7 @@ package remotestorage
17
17
import (
18
18
"context"
19
19
"fmt"
20
- "io/ioutil "
20
+ "os "
21
21
"path/filepath"
22
22
"strings"
23
23
@@ -91,9 +91,9 @@ func (g *GoogleCloudStorage) UploadFile(bucket, src, dst string, opts ...OpOptio
91
91
}
92
92
93
93
g .lg .Info ("uploading" , zap .String ("source" , src ), zap .String ("destination" , dst ))
94
- bts , err := ioutil .ReadFile (src )
94
+ bts , err := os .ReadFile (src )
95
95
if err != nil {
96
- return fmt .Errorf ("ioutil .ReadFile(%s) %v" , src , err )
96
+ return fmt .Errorf ("os .ReadFile(%s) %v" , src , err )
97
97
}
98
98
if _ , err := wc .Write (bts ); err != nil {
99
99
return err
@@ -144,9 +144,9 @@ func (g *GoogleCloudStorage) UploadDir(bucket, src, dst string, opts ...OpOption
144
144
if ret .ContentType != "" {
145
145
wc .ContentType = ret .ContentType
146
146
}
147
- bts , err := ioutil .ReadFile (fpath )
147
+ bts , err := os .ReadFile (fpath )
148
148
if err != nil {
149
- errc <- fmt .Errorf ("ioutil .ReadFile(%s) %v" , fpath , err )
149
+ errc <- fmt .Errorf ("os .ReadFile(%s) %v" , fpath , err )
150
150
return
151
151
}
152
152
if _ , err := wc .Write (bts ); err != nil {
0 commit comments