Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/hugofs
diff options
context:
space:
mode:
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/fileinfo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugofs/fileinfo.go b/hugofs/fileinfo.go
index 5a0fc2363..74beb05dd 100644
--- a/hugofs/fileinfo.go
+++ b/hugofs/fileinfo.go
@@ -129,6 +129,10 @@ func (f FileMeta) IsSymlink() bool {
return f.GetBool(metaKeyIsSymlink)
}
+func (f FileMeta) String() string {
+ return f.Filename()
+}
+
func (f FileMeta) Watch() bool {
if v, found := f["watch"]; found {
return v.(bool)