fs: allow overring fs for streams
This would allow modules such as graceful-fs
to gracefully implement alternative fs
methods for fs streams.
Would also make it possible for user land modules to implement alternative file systems (e.g. WebDAV, HTTP, SMB etc...) while re-using the existing streams implementation.
Refs: https://github.com/nodejs/node/issues/29050
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines