check: an initial pass at a validation check

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-03-23 16:58:16 -04:00
parent 6db2f462a1
commit 2fd41fb43f
5 changed files with 101 additions and 13 deletions

View file

@ -47,7 +47,7 @@ type Entry struct {
}
func (e Entry) Path() string {
if e.Parent == nil {
if e.Parent == nil || e.Type == FullType {
return e.Name
}
return filepath.Join(e.Parent.Path(), e.Name)