aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-10-09 10:30:09 +0200
committerBjørn Erik Pedersen <[email protected]>2019-10-09 10:30:09 +0200
commitf10db101a18f5cad332c9398136f77e35a169d52 (patch)
tree492fad2490b949a3ad368c598b7ca3bc5f19cfd7 /hugofs
parentb401858ebd346c433dd69a260eba7098bded5a30 (diff)
downloadhugo-f10db101a18f5cad332c9398136f77e35a169d52.tar.gz
hugo-f10db101a18f5cad332c9398136f77e35a169d52.zip
hugofs: Add FileMeta.String
To make the page listing easier to compare.
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)