Skip to content

Commit

Permalink
fix : relative path with cwd is absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
ygotthilf committed Aug 27, 2014
1 parent 2d1ba55 commit 8df6d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function deploy(opt, files, logger, cb) {
return emptyAzureCdnTargetFolder(blobService, options, logger);
});
async.eachLimit(files, options.concurrentUploadThreads, function(file, eachCallback) {
var relativePath = file.path.replace(file.cwd + path.sep, '');
var relativePath = path.relative(file.cwd, file.path);
var destFileName = options.folder + relativePath;
var sourceFile = file.path;
var metadata = clone(options.metadata);
Expand Down

0 comments on commit 8df6d1f

Please sign in to comment.