diff --git a/lib/fs.js b/lib/fs.js index a49a7d2e86ccad..e63e2c85800196 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1056,24 +1056,24 @@ fs.symlinkSync = function(target, path, type) { type); }; -fs.link = function(srcpath, dstpath, callback) { +fs.link = function(existingPath, newPath, callback) { callback = makeCallback(callback); - if (!nullCheck(srcpath, callback)) return; - if (!nullCheck(dstpath, callback)) return; + if (!nullCheck(existingPath, callback)) return; + if (!nullCheck(newPath, callback)) return; var req = new FSReqWrap(); req.oncomplete = callback; - binding.link(pathModule._makeLong(srcpath), - pathModule._makeLong(dstpath), + binding.link(pathModule._makeLong(existingPath), + pathModule._makeLong(newPath), req); }; -fs.linkSync = function(srcpath, dstpath) { - nullCheck(srcpath); - nullCheck(dstpath); - return binding.link(pathModule._makeLong(srcpath), - pathModule._makeLong(dstpath)); +fs.linkSync = function(existingPath, newPath) { + nullCheck(existingPath); + nullCheck(newPath); + return binding.link(pathModule._makeLong(existingPath), + pathModule._makeLong(newPath)); }; fs.unlink = function(path, callback) {