diff options
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/files.go | 5 |
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 } |