Closed alienzhou closed 2 years ago
.rm and .rmSync were added in Node.js v14.14.0.
.rm
.rmSync
Although they has been implemented in memfs, they are not binded when calling createFsFromVolume().
createFsFromVolume()
// Bind FS methods. for (const method of fsSyncMethods) if (typeof vol[method] === 'function') fs[method] = vol[method].bind(vol); for (const method of fsAsyncMethods) if (typeof vol[method] === 'function') fs[method] = vol[method].bind(vol);
https://github.com/streamich/memfs/blob/dd3828afa053af441d37e92a8d449f6782554458/src/index.ts#L38-L40
These methods are not in fsSyncMethods and fsAsyncMethods now.
fsSyncMethods
fsAsyncMethods
:tada: This PR is included in version 1.0.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Although they has been implemented in memfs, they are not binded when calling
createFsFromVolume()
.https://github.com/streamich/memfs/blob/dd3828afa053af441d37e92a8d449f6782554458/src/index.ts#L38-L40
These methods are not in
fsSyncMethods
andfsAsyncMethods
now.