diff --git a/cmd/subcmd/copy-sftp-id.go b/cmd/subcmd/copy-sftp-id.go index 021dee2..42247a2 100644 --- a/cmd/subcmd/copy-sftp-id.go +++ b/cmd/subcmd/copy-sftp-id.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "os" "path" "path/filepath" @@ -218,7 +217,7 @@ func copySftpId(filesystem *irodsclient_fs.FileSystem, force bool, dryrun bool, // copy // read the identity file first - identityFileContent, err := ioutil.ReadFile(identityFile) + identityFileContent, err := os.ReadFile(identityFile) if err != nil { return err } diff --git a/commons/commands.go b/commons/commands.go index 8cb942e..2bc4a6d 100644 --- a/commons/commands.go +++ b/commons/commands.go @@ -3,7 +3,6 @@ package commons import ( "errors" "fmt" - "io/ioutil" "os" "path" "path/filepath" @@ -450,7 +449,7 @@ func loadConfigFile(configPath string) error { } // load from YAML - yjBytes, err := ioutil.ReadFile(configPath) + yjBytes, err := os.ReadFile(configPath) if err != nil { return err }