Lines Matching refs:recursive
12 'In future versions of Node.js, fs.rmdir(path, { recursive: true }) ' +
13 'will be removed. Use fs.rm(path, { recursive: true }) instead',
20 const nextDirPath = (name = 'rmdir-recursive') =>
24 fs.mkdirSync(dirname, { recursive: true });
60 { recursive: true }
73 // Removal should fail without the recursive option.
77 // Removal should fail without the recursive option set to true.
78 fs.rmdir(dir, { recursive: false }, common.mustCall((err) => {
82 fs.rmdir(dir, { recursive: true }, common.mustSucceed(() => {
83 // An error should occur if recursive and the directory does not exist.
84 fs.rmdir(dir, { recursive: true }, common.mustCall((err) => {
119 // Removal should fail without the recursive option set to true.
124 fs.rmdirSync(dir, { recursive: false });
128 fs.rmdirSync(dir, { recursive: true });
130 // An error should occur if recursive and the directory does not exist.
131 assert.throws(() => fs.rmdirSync(dir, { recursive: true }),
143 // Removal should fail without the recursive option set to true.
145 await assert.rejects(fs.promises.rmdir(dir, { recursive: false }), {
150 await fs.promises.rmdir(dir, { recursive: true });
152 // An error should occur if recursive and the directory does not exist.
153 await assert.rejects(fs.promises.rmdir(dir, { recursive: true }),
165 recursive: false
170 recursive: true
181 recursive: false
196 validateRmdirOptions({ recursive: bad });
200 message: /^The "options\.recursive" property must be of type boolean\./
221 // It should not pass recursive option to rmdirSync, when called from
227 fs.mkdirSync(dir, { recursive: true });
230 // When called the second time from rimraf, the recursive option should
241 fs.rmdirSync(dir, { recursive: true });
243 assert.strictEqual(rmdirSyncOptionsFromRimraf.recursive, undefined);