Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
FS.mkdirp = function() {
let mkdirp = require("mkdirp");
mkdirp.apply(null, Array.prototype.slice.call(arguments, 0));
}
return new Promise((resolve, reject) => {
mkDirP.apply(null, args.concat([(err: Error, made: string) => {
if (err) {
reject(err);
} else {
resolve(made);
}
}]));
});
}
return new Promise((resolve, reject) => {
mkDirP.apply(null, args.concat([(err: Error, made: string) => {
if (err) {
reject(err);
} else {
resolve(made);
}
}]));
});
}