hugolib: Add String() to fileInfo

See #5784
This commit is contained in:
Bjørn Erik Pedersen
2019-03-25 08:25:29 +01:00
parent 91ef9655aa
commit a7ee9b0bb9
2 changed files with 37 additions and 0 deletions

View File

@@ -60,6 +60,13 @@ func (fi *fileInfo) Filename() string {
return fi.basePather.Filename()
}
func (fi *fileInfo) String() string {
if fi == nil || fi.ReadableFile == nil {
return ""
}
return fi.Path()
}
func (fi *fileInfo) isOwner() bool {
return fi.bundleTp > bundleNot
}