spf13 / afero

A FileSystem Abstraction System for Go
Apache License 2.0
5.79k stars 498 forks source link

allow absolute paths in BasePathFs when prefix is "" on windows #420

Open DenKoren opened 3 months ago

DenKoren commented 3 months ago

As a special case, it is OK to allow absolute paths access when the BasePathFs.path is empty. Sometimes we need to provide access to full FS through BasePathFs type for code simplicity (to pass it to the functions, that want BasePathFs specific type, not just afero.FS interface).

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.