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).
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 wantBasePathFs
specific type, not justafero.FS
interface).