Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed rename function

  • Loading branch information...
commit bbdc0e2ade9164ce587e8c68164301a5f3978334 1 parent 79e2b57
Tommy Chen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/qfs.js
4 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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.