Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
symbolicLink hardLink fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Podsechin committed Mar 10, 2012
1 parent d0b2c9a commit 7e54a90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/fs-base.js
Expand Up @@ -649,8 +649,7 @@ var touch = exports.touch = function(path, mtime) {
* @param {string} target the target link
*/
var symbolicLink = exports.symbolicLink = function(source, target) {
var file = resolveFile(path);
fss.symlink(file, target);
fss.symlink(resolveFile(source), target);
};

/**
Expand All @@ -660,8 +659,7 @@ var symbolicLink = exports.symbolicLink = function(source, target) {
* @param {string} target the target file
*/
var hardLink = exports.hardLink = function(source, target) {
var file = resolveFile(path);
fss.link(file, target);
fss.link(resolveFile(source), target);
};

/**
Expand Down

0 comments on commit 7e54a90

Please sign in to comment.