Lines Matching refs:newPath
1004 * the pathname provided as `newPath`.
1006 * @param {string | Buffer | URL} newPath
1010 function rename(oldPath, newPath, callback) {
1013 newPath = getValidatedPath(newPath, 'newPath');
1017 pathModule.toNamespacedPath(newPath),
1024 * the pathname provided as `newPath`.
1026 * @param {string | Buffer | URL} newPath
1029 function renameSync(oldPath, newPath) {
1031 newPath = getValidatedPath(newPath, 'newPath');
1032 const ctx = { path: oldPath, dest: newPath };
1034 pathModule.toNamespacedPath(newPath), undefined, ctx);
1819 * to the `newPath`.
1821 * @param {string | Buffer | URL} newPath
1825 function link(existingPath, newPath, callback) {
1829 newPath = getValidatedPath(newPath, 'newPath');
1835 pathModule.toNamespacedPath(newPath),
1841 * to the `newPath`.
1843 * @param {string | Buffer | URL} newPath
1846 function linkSync(existingPath, newPath) {
1848 newPath = getValidatedPath(newPath, 'newPath');
1850 const ctx = { path: existingPath, dest: newPath };
1852 pathModule.toNamespacedPath(newPath),