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>
- .getDeletedPaths() ⇒
Array.<string>
- .delete(paths) ⇒
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.
Param | Type | Description |
---|---|---|
paths | Array.<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.