MCPcopy Create free account
hub / github.com/nodejs/node / rimrafPromises

Function rimrafPromises

lib/internal/fs/rimraf.js:159–168  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

157
158
159function rimrafPromises(path, options) {
160 return new Promise((resolve, reject) => {
161 rimraf(path, options, (err) => {
162 if (err)
163 return reject(err);
164
165 resolve();
166 });
167 });
168}
169
170
171module.exports = { rimraf, rimrafPromises };

Callers

nothing calls this directly

Calls 3

rimrafFunction · 0.85
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected