MatrixAI / js-encryptedfs

Encrypted Filesystem for TypeScript/JavaScript Applications
https://polykey.com
Apache License 2.0
10 stars 3 forks source link

Add in `rm` method #60

Open CMCDragonkai opened 2 years ago

CMCDragonkai commented 2 years ago

Specification

The rm method takes over some of the functionality of rmdir. This rm method was introduced in Node 14.14. I believe some of our uses of EFS may start using rm instead of rmdir. It's probably a good idea to support rm as well.

Additional context

Tasks

  1. Investigate the docs for rm and fsPromises.rm in NodeJS https://nodejs.org/api/fs.html
  2. Add in the rm method
  3. Keep the old options available in rmdir even though they are deprecated in Node FS.