Skip to content

rimraf-path-remover

RimrafPathRemover

Implementation of the PathRemover interface using the rimraf module. This class provides methods to delete specified paths and retrieve the list of deleted paths.

Kind: global class
Implements: PathRemover

rimrafPathRemover.delete(paths) ⇒ Promise.<boolean>

Deletes the specified paths.

Kind: instance method of RimrafPathRemover
Returns: Promise.<boolean> - A promise that resolves with a boolean indicating whether all paths were successfully deleted.

ParamTypeDescription
pathsArray.<string>An array of paths or glob patterns to be deleted.

rimrafPathRemover.getDeletedPaths() ⇒ Array.<string>

Retrieves the list of paths that were deleted.

Kind: instance method of RimrafPathRemover
Returns: Array.<string> - An array of paths that were deleted.

Released under the MIT License.