From f5ba6fd45cc32686416e71903f3095139739d00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 13 Aug 2022 19:22:45 +0200 Subject: common/hugio: One more fix for non-OS fs Note that these are only used with OS fs, so no practical bugs, but still- --- common/hugio/copy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common') diff --git a/common/hugio/copy.go b/common/hugio/copy.go index cd2eac036..8dbadc48c 100644 --- a/common/hugio/copy.go +++ b/common/hugio/copy.go @@ -16,7 +16,6 @@ package hugio import ( "fmt" "io" - "io/ioutil" "path/filepath" "github.com/spf13/afero" @@ -66,7 +65,7 @@ func CopyDir(fs afero.Fs, from, to string, shouldCopy func(filename string) bool return err } - entries, _ := ioutil.ReadDir(from) + entries, _ := afero.ReadDir(fs, from) for _, entry := range entries { fromFilename := filepath.Join(from, entry.Name()) toFilename := filepath.Join(to, entry.Name()) -- cgit v1.2.3