forked from mirror/afero
clean basepath before stripping
This commit is contained in:
parent
f12a645649
commit
c5621b3590
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue