check: fix the checking of a hierarchy
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
b7724b906b
commit
05f9b75a19
4 changed files with 11 additions and 2 deletions
|
@ -46,6 +46,7 @@ type Entry struct {
|
|||
Type EntryType
|
||||
}
|
||||
|
||||
// Path provides the full path of the file, despite RelativeType or FullType
|
||||
func (e Entry) Path() string {
|
||||
if e.Parent == nil || e.Type == FullType {
|
||||
return e.Name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue