spf13 / afero

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

Call `OpenFile` instead of `Open` in `CacheOnReadFs` (fixes #193) #332

Closed pojntfx closed 2 years ago

pojntfx commented 2 years ago

This closes #193 by calling OpenFile instead of Open when appropiate, thus passing i.e. O_CREATE to the layer. Already tested in https://github.com/pojntfx/stfs.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.