kubernetes/pkg/volume/util/fs
Stephen Kitt ab75e48494
storage: stop using deprecated io/ioutil
This replaces deprecated ioutil variables and functions as follows:

* ioutil.ReadDir -> os.ReadDir
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile

The ReadDir conversion involves an API change, the replacement
function returns a slice of fs.DirEntry instead of fs.FileInfo.
Where appropriate, the surrounding code has been adjusted; mostly,
that means using DirEntry.Type() instead of FileInfo.Mode().
Applying this change to the IoUtil interface would mean changing its
API, so this is left for later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-06-20 16:49:03 +02:00
..
fs_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
fs_windows_test.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
fs_windows.go unittests: Fixes unit tests for Windows (part 3) 2022-10-21 19:25:48 +03:00
fs.go set metric_source to du or fsquota accordingly 2022-01-20 10:56:02 +08:00