dualfroz b778e8e78b fix: strip nested BasePathFs base segment from BasePathFile.Name
BasePathFile.Name trimmed only filepath.Clean(path) from the wrapped
file name. filepath.Clean drops the trailing separator, and a nested
BasePathFile reports a name whose base segment is preceded by a leading
separator (for example "/123/x"), which the cleaned base ("123") does
not match. The base then leaked into Name and callers double-prepended
it. Trim the separator-prefixed form too so nested BasePathFs report a
name that round-trips.

Fixes #428
2026-09-02 11:39:06 +02:00
S
Description
My contributions to spf13/afero: 3 commits
66 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%