aboutsummaryrefslogtreecommitdiffhomepage
path: root/helpers
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-05-24 09:34:36 +0200
committerBjørn Erik Pedersen <[email protected]>2022-05-25 10:35:31 +0200
commitcd0112a05a9ddb7043c9808284f93d8099c48473 (patch)
tree92da50996ede587f3683fdcfc851ed0325b64998 /helpers
parent6f7fbe03b1a70733f00da6556a89250a29e53ec8 (diff)
downloadhugo-cd0112a05a9ddb7043c9808284f93d8099c48473.tar.gz
hugo-cd0112a05a9ddb7043c9808284f93d8099c48473.zip
Add resources.Copy
Implemented by most Resource objects, but not Page (for now). Fixes #9313
Diffstat (limited to 'helpers')
-rw-r--r--helpers/general.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/helpers/general.go b/helpers/general.go
index e31bbfc9d..462ec773d 100644
--- a/helpers/general.go
+++ b/helpers/general.go
@@ -33,8 +33,6 @@ import (
"github.com/mitchellh/hashstructure"
- "github.com/gohugoio/hugo/hugofs"
-
"github.com/gohugoio/hugo/common/hugo"
"github.com/spf13/afero"
@@ -521,13 +519,7 @@ func PrintFs(fs afero.Fs, path string, w io.Writer) {
}
afero.Walk(fs, path, func(path string, info os.FileInfo, err error) error {
- var filename string
- var meta any
- if fim, ok := info.(hugofs.FileMetaInfo); ok {
- filename = fim.Meta().Filename
- meta = fim.Meta()
- }
- fmt.Fprintf(w, " %q %q\t\t%v\n", path, filename, meta)
+ fmt.Println(path)
return nil
})
}