Skip to content
Permalink
Browse files

hugofs: Add FileMeta.String

To make the page listing easier to compare.
  • Loading branch information...
bep committed Oct 9, 2019
1 parent b401858 commit f10db101a18f5cad332c9398136f77e35a169d52
Showing with 4 additions and 0 deletions.
  1. +4 −0 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)

0 comments on commit f10db10

Please sign in to comment.
You can’t perform that action at this time.