clean basepath before stripping

This commit is contained in:
Albert Z Wang 2017-11-29 13:56:26 -05:00
parent f12a645649
commit c5621b3590
1 changed files with 1 additions and 1 deletions

View File

@ -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 {