Permalink
Browse files

fixed rename function

  • Loading branch information...
1 parent 79e2b57 commit bbdc0e2ade9164ce587e8c68164301a5f3978334 @tommy351 committed Sep 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/qfs.js
View
@@ -447,7 +447,7 @@ utils.each({
var _this = this;
fn.push(function(next){
- fs.rename(_this.dir() + sep + name, next);
+ fs.rename(_this.path(), _this.dir() + sep + name, next);
});
});
@@ -460,7 +460,7 @@ utils.each({
this.each(function(){
var path = this.dir() + sep + name;
- fs.renameSync(path);
+ fs.renameSync(this.path(), path);
arr.push(path);
});

0 comments on commit bbdc0e2

Please sign in to comment.