gentle-fs is a standalone library for
"gently" remove or link directories.
$ npm install gentle-fs
The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.
Will delete all directories between
opts.base, as long as they are empty.
That is, if
/a/b/c has other files
d directory inside of it,
/a/b/c will remain.
from is a real directory, and
from is not the same directory as
to, while also gently
and then call the callback. Otherwise, will call callback with an
Performs the same operation as
link, except does nothing when
from is the
to, and calls the callback.