spf13 / afero

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

Handle errors from closing writable Files #339

Open Jille opened 2 years ago

Jille commented 2 years ago

Close might do some flushing, so failures to Close might cause data loss.

We should probably also check all Close() calls of read-only files, but I'm not aware of any data loss possibilities by ignoring those.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.