spf13 / afero

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

Return os consistent error in ReadOnlyFs filter #351

Open jochil opened 2 years ago

jochil commented 2 years ago

fixes #350: Use os.ErrPermission instead of syscall.EPERM to make sure that the error is consistent over different operating systems and can be checked with os.isPermission(err)

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.