travis: add travis check
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
b595e50fec
commit
c3855dab6d
5 changed files with 27 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue