gentle-fs is a standalone library for
"gently" remove or link directories.
$ npm install gentle-fs
Table of Contents
- Performs filesystem operations "gently". Please see details in the API specs below for a more precise definition of "gently".
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.
rm(target, opts, cb)
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
link(from, to, opts, cb)
Performs the same operation as
link, except does nothing when
from is the
to, and calls the callback.
linkIfExists(from, to, opts, cb)