MCPcopy Index your code
hub / github.com/react/react / asyncMkDirP

Function asyncMkDirP

scripts/rollup/utils.js:53–63  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

51}
52
53function asyncMkDirP(filepath) {
54 return new Promise((resolve, reject) =>
55 mkdirp(filepath, error => {
56 if (error) {
57 reject(error);
58 return;
59 }
60 resolve();
61 })
62 );
63}
64
65function asyncRimRaf(filepath) {
66 return new Promise((resolve, reject) =>

Callers 1

asyncCopyToFunction · 0.85

Calls 2

rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected