Skip to content

Commit

Permalink
Fixed issue with cpr is given a file instead of a dir
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Oct 19, 2012
1 parent f3d6302 commit 2cbeb0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ exports.cpr = function (from, to, opts, callback) {
});
} else {
proc();

}
} else {
callback('From should be a directory');
}
});
};

0 comments on commit 2cbeb0e

Please sign in to comment.