hugofs: Add FileMeta.String

To make the page listing easier to compare.
This commit is contained in:
Bjørn Erik Pedersen 2019-10-09 10:30:09 +02:00
parent b401858ebd
commit f10db101a1
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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)