Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Treat S3's Key as posix-style path
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
robertrossmann committed Jun 21, 2016
1 parent d784652 commit 2366785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ module.exports = class Uploader extends WritableStream {
parts.dir = scope.opts.dirname
}

const fd = path.format(parts) // eslint-disable-line one-var
// fd is S3-specific, so always treat the parts as unix-style paths (which S3 uses)
const fd = path.posix.format(parts)
const type = mime.lookup(name)
const outStream = new Hasher()
const params = merge({
Expand Down

0 comments on commit 2366785

Please sign in to comment.