Skip to content

Commit

Permalink
Update lib/asset_copier.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vizo committed Sep 1, 2012
1 parent eaa4f55 commit e30fc84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/asset_copier.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ AssetCopier.prototype.build = function(srcPath, done) {
done = _error(this, done);
var realPath = _resolve(this, srcPath);
var self = this;
PATH.exists(realPath, function(exists) {
var exists = FS.exists || PATH.exists;
exists(realPath, function(exists) {
if (!exists) return done(new Error(srcPath + ' not found'));
FS.stat(realPath, function(err, stats) {
if (!err && stats.isDirectory()) {
Expand Down

0 comments on commit e30fc84

Please sign in to comment.