You should get the error on second Stat (which is the intended behavior since the secret folder has no read permissions). It works on Linux and Mac, but not on Windows.
this might be a Go standard library issue instead of an afero one. As it simply uses the os package. It might be simply that windows does not allow for such behavior.
How to reproduce:
You should get the error on second Stat (which is the intended behavior since the
secret
folder has no read permissions). It works on Linux and Mac, but not on Windows.