mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 19:03:28 +00:00
common/hugio: One more fix for non-OS fs
Note that these are only used with OS fs, so no practical bugs, but still-
This commit is contained in:
parent
c4bbc1eeeb
commit
f5ba6fd45c
1 changed files with 1 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue