Initializes a new instance of this object.
The options for file read and writes.
Writes to a given path.
The path to write to. If this points to a hierarchy, then all hierarchy nodes should be created.
The options for the write.
The total number of bytes written, or 0 if buffer is falsy. If this is writing or creating directories, then 0 should be returned.
A stream that can read and write to files.
This is mostly a wrapper to readFile and writeFile from node, but with some optimizations.
First, this class supports file content caching so reading in a file that's under a certain size threshold will store it in memory for later retrieval.