spf13 / afero

A FileSystem Abstraction System for Go
Apache License 2.0
5.98k stars 514 forks source link

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

Open DenKoren opened 8 months ago

DenKoren commented 8 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 8 months ago

CLA assistant check
All committers have signed the CLA.