Skip to content

Commit

Permalink
hugofs: Add FileMeta.String
Browse files Browse the repository at this point in the history
To make the page listing easier to compare.
  • Loading branch information
bep committed Oct 9, 2019
1 parent b401858 commit f10db10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hugofs/fileinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f10db10

Please sign in to comment.