summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 7c52f8723..cd2eac036 100644
--- a/common/hugio/copy.go
+++ b/common/hugio/copy.go
@@ -17,7 +17,6 @@ import (
"fmt"
"io"
"io/ioutil"
- "os"
"path/filepath"
"github.com/spf13/afero"
@@ -53,7 +52,7 @@ func CopyFile(fs afero.Fs, from, to string) error {
// CopyDir copies a directory.
func CopyDir(fs afero.Fs, from, to string, shouldCopy func(filename string) bool) error {
- fi, err := os.Stat(from)
+ fi, err := fs.Stat(from)
if err != nil {
return err
}