Commit Graph
2 Commits
Author SHA1 Message Date
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
upstream 9f78513f63 Upstream spf13/afero state of the touched files before aa3bf060dc 2026-09-02 11:39:06 +02:00