mirror of
https://github.com/restic/restic.git
synced 2025-12-02 12:22:02 +00:00
Replace usages of ioutil.ReadDir
This changes the return type to []fs.DirEntry. However, as we only use the filenames anyways, this doesn't make a difference.
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -366,7 +365,7 @@ func runBuild(sourceDir, outputDir, version string) {
|
||||
}
|
||||
|
||||
func readdir(dir string) []string {
|
||||
fis, err := ioutil.ReadDir(dir)
|
||||
fis, err := os.ReadDir(dir)
|
||||
if err != nil {
|
||||
die("readdir %v failed: %v", dir, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user