Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

symbolicLink hardLink fix

  • Loading branch information...
commit 7e54a90f132377512a756dc9fd6ef3128b8600fb 1 parent d0b2c9a
Oleg Podsechin authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/fs-base.js
View
6 lib/fs-base.js
@@ -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);
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.