Lines Matching refs:existingFile
36 const existingFile = path.join(tmpdir.path, 'existingFile.js'); constant
41 fs.writeFileSync(existingFile, 'test', 'utf-8');
221 assert.strictEqual(existingFile, err.path);
225 `EEXIST: file already exists, link '${existingFile}' -> ` +
233 fs.link(existingFile, existingFile2, common.mustCall(validateError));
236 () => fs.linkSync(existingFile, existingFile2),
244 assert.strictEqual(existingFile, err.path);
248 `EEXIST: file already exists, symlink '${existingFile}' -> ` +
256 fs.symlink(existingFile, existingFile2, common.mustCall(validateError));
259 () => fs.symlinkSync(existingFile, existingFile2),
378 assert.strictEqual(existingFile, err.path);
383 `ENOTDIR: not a directory, rmdir '${existingFile}'`);
388 `ENOENT: no such file or directory, rmdir '${existingFile}'`);
395 fs.rmdir(existingFile, common.mustCall(validateError));
398 () => fs.rmdirSync(existingFile),
406 assert.strictEqual(existingFile, err.path);
409 `EEXIST: file already exists, mkdir '${existingFile}'`);
416 fs.mkdir(existingFile, 0o666, common.mustCall(validateError));
419 () => fs.mkdirSync(existingFile, 0o666),
674 () => fs.copyFile(existingFile, nonexistentFile, -1, () => {}),
678 () => fs.copyFileSync(existingFile, nonexistentFile, -1),
689 `'${existingFile}' -> '${existingFile2}'`);
696 `'${existingFile}' -> '${existingFile2}'`);
704 fs.copyFile(existingFile, existingFile2, COPYFILE_EXCL,
708 () => fs.copyFileSync(existingFile, existingFile2, COPYFILE_EXCL),