We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 501900c commit 8243255Copy full SHA for 8243255
script/lib/s3put.js
@@ -13,7 +13,7 @@ if (prefix && !prefix.endsWith(path.sep)) prefix = path.resolve(prefix) + path.s
13
function filenameToKey (file) {
14
file = path.resolve(file);
15
if (file.startsWith(prefix)) file = file.substr(prefix.length - 1);
16
- return key_prefix + file.replace(path.sep, '/');
+ return key_prefix + (path.sep === '\\' ? file.replace(/\\/g, '/') : file);
17
}
18
19
let anErrorOccurred = false;
0 commit comments