Merge pull request #117198 from charles-chenzz/deprecated_function

replace ioutil with os, update doc in kubelet
This commit is contained in:
Kubernetes Prow Robot
2023-05-02 08:18:14 -07:00
committed by GitHub
10 changed files with 17 additions and 23 deletions

View File

@@ -85,7 +85,7 @@ func (fs *DefaultFs) RemoveAll(path string) error {
return os.RemoveAll(fs.prefix(path))
}
// Remove via os.RemoveAll
// Remove via os.Remove
func (fs *DefaultFs) Remove(name string) error {
return os.Remove(fs.prefix(name))
}

View File

@@ -33,7 +33,7 @@ type Filesystem interface {
RemoveAll(path string) error
Remove(name string) error
// from "io/ioutil"
// from "os"
ReadFile(filename string) ([]byte, error)
TempDir(dir, prefix string) (string, error)
TempFile(dir, prefix string) (File, error)