Lines Matching refs:filePath
139 const filePath = path.join(tmpdir.path, 'rm-async-file.txt');
140 fs.writeFileSync(filePath, '');
141 fs.rm(filePath, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => {
144 assert.strictEqual(fs.existsSync(filePath), false);
146 fs.rmSync(filePath, common.mustNotMutateObjectDeep({ force: true }));
226 const filePath = path.join(tmpdir.path, 'rm-file.txt');
227 fs.writeFileSync(filePath, '');
230 fs.rmSync(filePath, common.mustNotMutateObjectDeep({ recursive: true }));
231 assert.strictEqual(fs.existsSync(filePath), false);
233 fs.rmSync(filePath, common.mustNotMutateObjectDeep({ force: true }));
332 const filePath = path.join(tmpdir.path, 'rm-promises-file.txt');
333 fs.writeFileSync(filePath, '');
336 await fs.promises.rm(filePath, common.mustNotMutateObjectDeep({ recursive: true }));
337 assert.strictEqual(fs.existsSync(filePath), false);
339 fs.rmSync(filePath, common.mustNotMutateObjectDeep({ force: true }));
405 const filePath = (path.join(tmpdir.path, 'rm-args-file.txt'));
406 fs.writeFileSync(filePath, '');
421 assert.deepStrictEqual(validateRmOptionsSync(filePath), defaults);
422 assert.deepStrictEqual(validateRmOptionsSync(filePath, {}), defaults);
423 assert.deepStrictEqual(validateRmOptionsSync(filePath, modified), modified);
424 assert.deepStrictEqual(validateRmOptionsSync(filePath, {
435 validateRmOptionsSync(filePath, bad);
445 validateRmOptionsSync(filePath, { recursive: bad });
455 validateRmOptionsSync(filePath, { force: bad });
464 validateRmOptionsSync(filePath, { retryDelay: -1 });
472 validateRmOptionsSync(filePath, { maxRetries: -1 });
509 const filePath = path.join(dirname, 'text.txt');
512 fs.writeFileSync(filePath, 'hello');
515 fs.rmSync(filePath, common.mustNotMutateObjectDeep({ force: true }));