Lines Matching refs:existingFile
36 const existingFile = path.join(tmpdir.path, 'existingFile.js'); constant
41 fs.writeFileSync(existingFile, 'test', 'utf-8');
220 assert.strictEqual(existingFile, err.path);
224 `EEXIST: file already exists, link '${existingFile}' -> ` +
232 fs.link(existingFile, existingFile2, common.mustCall(validateError));
235 () => fs.linkSync(existingFile, existingFile2),
243 assert.strictEqual(existingFile, err.path);
247 `EEXIST: file already exists, symlink '${existingFile}' -> ` +
255 fs.symlink(existingFile, existingFile2, common.mustCall(validateError));
258 () => fs.symlinkSync(existingFile, existingFile2),
376 assert.strictEqual(existingFile, err.path);
381 `ENOTDIR: not a directory, rmdir '${existingFile}'`);
386 `ENOENT: no such file or directory, rmdir '${existingFile}'`);
393 fs.rmdir(existingFile, common.mustCall(validateError));
396 () => fs.rmdirSync(existingFile),
404 assert.strictEqual(existingFile, err.path);
407 `EEXIST: file already exists, mkdir '${existingFile}'`);
414 fs.mkdir(existingFile, 0o666, common.mustCall(validateError));
417 () => fs.mkdirSync(existingFile, 0o666),
669 () => fs.copyFile(existingFile, nonexistentFile, -1, () => {}),
673 () => fs.copyFileSync(existingFile, nonexistentFile, -1),
684 `'${existingFile}' -> '${existingFile2}'`);
691 `'${existingFile}' -> '${existingFile2}'`);
699 fs.copyFile(existingFile, existingFile2, COPYFILE_EXCL,
703 () => fs.copyFileSync(existingFile, existingFile2, COPYFILE_EXCL),