aboutsummaryrefslogtreecommitdiff
path: root/hotline
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:19:26 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:19:26 -0700
commit548d4bb93fe32d24b3fbc491a01e5c6127be9289 (patch)
tree55ed4bb4aef8e08f5d4587838d22abd1a6ee8f30 /hotline
parentd61414673846dc2bdafd0f1cc941caefb3cd5066 (diff)
Replace deprecated ioutil
Diffstat (limited to 'hotline')
-rw-r--r--hotline/files.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hotline/files.go b/hotline/files.go
index c4ba718..1eeef59 100644
--- a/hotline/files.go
+++ b/hotline/files.go
@@ -4,7 +4,6 @@ import (
"encoding/binary"
"errors"
"io/fs"
- "io/ioutil"
"os"
"path/filepath"
"regexp"
@@ -66,7 +65,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro
}
if rFile.IsDir() {
- dir, err := ioutil.ReadDir(filepath.Join(path, file.Name()))
+ dir, err := os.ReadDir(filepath.Join(path, file.Name()))
if err != nil {
return fields, err
}
@@ -88,7 +87,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro
}
} else if file.IsDir() {
- dir, err := ioutil.ReadDir(filepath.Join(path, file.Name()))
+ dir, err := os.ReadDir(filepath.Join(path, file.Name()))
if err != nil {
return fields, err
}