summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-08-13 19:22:45 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-08-13 19:22:45 +0200
commitf5ba6fd45cc32686416e71903f3095139739d00a (patch)
treebdf8202fda73478b21fb89bc25347d2dd0b7d107 /common
parentc4bbc1eeeb4b6730593dc9bea7be5c0d879cf90d (diff)
common/hugio: One more fix for non-OS fs
Note that these are only used with OS fs, so no practical bugs, but still-
Diffstat (limited to 'common')
-rw-r--r--common/hugio/copy.go3
1 files changed, 1 insertions, 2 deletions
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())