Skip to content

Commit

Permalink
clean basepath before stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
arbelt committed Nov 29, 2017
1 parent f12a645 commit c5621b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basepath.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type BasePathFile struct {

func (f *BasePathFile) Name() string {
sourcename := f.File.Name()
return strings.TrimPrefix(sourcename, f.path)
return strings.TrimPrefix(sourcename, filepath.Clean(f.path))
}

func NewBasePathFs(source Fs, path string) Fs {
Expand Down

0 comments on commit c5621b3

Please sign in to comment.