Permalink
Browse files

symbolicLink hardLink fix

  • Loading branch information...
1 parent d0b2c9a commit 7e54a90f132377512a756dc9fd6ef3128b8600fb Oleg Podsechin committed Mar 10, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/fs-base.js
View
@@ -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);
};
/**
@@ -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);
};
/**

0 comments on commit 7e54a90

Please sign in to comment.