isomorphic-git / lightning-fs

A lean and fast 'fs' for the browser
MIT License
493 stars 48 forks source link

Implement NodeJS 14 fs.rm #80

Open jcubic opened 3 years ago

jcubic commented 3 years ago

fs.rm is a new API in NodeJS fs module, that allows running recursive delete of directories. I can be handy in isomorphic-git/isomorphic-git#1383

mojavelinux commented 3 years ago

This is related to #71. Note that in newer versions of Node, the recursive option is now deprecated on rmdir. The rm function has replaced it. See https://nodejs.org/api/fs.html#fs_fspromises_rmdir_path_options