X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/b8c0a83a87eb108e8dfe02fd08c234087f166f04..548d4bb93fe32d24b3fbc491a01e5c6127be9289:/hotline/files.go diff --git a/hotline/files.go b/hotline/files.go index aa248f8..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 } @@ -131,7 +130,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro if err != nil { return nil, err } - fields = append(fields, NewField(fieldFileNameWithInfo, b)) + fields = append(fields, NewField(FieldFileNameWithInfo, b)) } return fields, nil