diff --git a/tasks/cloudfiles.js b/tasks/cloudfiles.js index 272d872..29ab187 100644 --- a/tasks/cloudfiles.js +++ b/tasks/cloudfiles.js @@ -122,6 +122,10 @@ module.exports = function(grunt) { ufile = stripComponents(ufile, strip); } + if (dest) { + ufile = dest + ufile; + } + hashFile(fileName, function (err, hash) { if (err) { return next(err); @@ -135,7 +139,7 @@ module.exports = function(grunt) { grunt.log.writeln('Uploading ' + fileName + ' to ' + container.name + ' (NEW)'); client.upload({ container: container, - remote: dest + ufile, + remote: ufile, local: fileName, headers: headers }, function (err) { @@ -146,7 +150,7 @@ module.exports = function(grunt) { grunt.log.writeln('Updating ' + fileName + ' to ' + container.name + ' (MD5 Diff)'); client.upload({ container: container, - remote: dest + ufile, + remote: ufile, local: fileName, headers: headers }, function (err) {