Skip to content

Commit

Permalink
common/hugio: One more fix for non-OS fs
Browse files Browse the repository at this point in the history
Note that these are only used with OS fs, so no practical bugs, but still-
  • Loading branch information
bep committed Aug 13, 2022
1 parent c4bbc1e commit f5ba6fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/hugio/copy.go
Expand Up @@ -16,7 +16,6 @@ package hugio
import (
"fmt"
"io"
"io/ioutil"
"path/filepath"

"github.com/spf13/afero"
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit f5ba6fd

Please sign in to comment.