diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-10-09 10:30:09 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-10-09 10:30:09 +0200 |
commit | f10db101a18f5cad332c9398136f77e35a169d52 (patch) | |
tree | 492fad2490b949a3ad368c598b7ca3bc5f19cfd7 /hugofs | |
parent | b401858ebd346c433dd69a260eba7098bded5a30 (diff) | |
download | hugo-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.go | 4 |
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) |