travis: add travis check

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-04-06 12:48:35 -04:00
parent b595e50fec
commit c3855dab6d
5 changed files with 27 additions and 6 deletions

View file

@ -49,9 +49,9 @@ type Entry struct {
// 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
return filepath.Clean(e.Name)
}
return filepath.Join(e.Parent.Path(), e.Name)
return filepath.Clean(filepath.Join(e.Parent.Path(), e.Name))
}
func (e Entry) String() string {