8000 refactor all use of ioutil.ReadDir · Issue #9926 · helm/helm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
refactor all use of ioutil.ReadDir #9926
Closed
@bacongobbler

Description

@bacongobbler

From the Go docs on ioutil.ReadDir:

As of Go 1.16, os.ReadDir is a more efficient and correct choice: it returns a list of fs.DirEntry instead of fs.FileInfo, and it returns partial results in the case of an error midway through reading a directory.

There are a few places in Helm relying on ioutil.ReadDir that would be good candidates to switch to os.ReadDir instead.

https://golang.org/pkg/os/#DirEntry

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.refactor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0