mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/spf13/afero"
|
"github.com/spf13/afero"
|
||||||
|
@ -66,7 +65,7 @@ func CopyDir(fs afero.Fs, from, to string, shouldCopy func(filename string) bool
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
entries, _ := ioutil.ReadDir(from)
|
entries, _ := afero.ReadDir(fs, from)
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
fromFilename := filepath.Join(from, entry.Name())
|
fromFilename := filepath.Join(from, entry.Name())
|
||||||
toFilename := filepath.Join(to, entry.Name())
|
toFilename := filepath.Join(to, entry.Name())
|
||||||
|
|
Loading…
Reference in a new issue