* @param {string} dirPath directory path * @param {(err: NodeJS.ErrnoException) => void} cb callback
(dirPath, cb)
| 64 | * @param {(err: NodeJS.ErrnoException) => void} cb callback |
| 65 | */ |
| 66 | mkdir(dirPath, cb) { |
| 67 | logs.mkdir.push(dirPath); |
| 68 | const err = /** @type {NodeJS.ErrnoException} */ (new Error("error")); |
| 69 | err.code = "EEXIST"; |
| 70 | cb(err); |
| 71 | }, |
| 72 | /** |
| 73 | * @param {string} name file name |
| 74 | * @param {Buffer} content file content |