Skip to content

Commit

Permalink
Merge pull request keystonejs#8 from cetchells/path-fix-windows
Browse files Browse the repository at this point in the history
Fixed resolving path name for windows  fixes keystonejs#6
  • Loading branch information
JedWatson authored Sep 4, 2016
2 parents b3e0d84 + 20c525c commit 8b9d4bc
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 @@ -89,7 +89,7 @@ S3Adapter.prototype._resolveFilename = function (file) {
// s3.path option. If that doesn't exist we'll assume the file is in the root
// of the bucket. (Whew!)
var path = file.path || this.options.path || '/';
return pathlib.resolve(path, file.filename);
return pathlib.posix.resolve(path, file.filename);
};

S3Adapter.prototype.uploadFile = function (file, callback) {
Expand Down

0 comments on commit 8b9d4bc

Please sign in to comment.