fix: s3put not replacing enough \\ (#25866)
This commit is contained in:
parent
501900cdc6
commit
8243255316
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ if (prefix && !prefix.endsWith(path.sep)) prefix = path.resolve(prefix) + path.s
|
|||
function filenameToKey (file) {
|
||||
file = path.resolve(file);
|
||||
if (file.startsWith(prefix)) file = file.substr(prefix.length - 1);
|
||||
return key_prefix + file.replace(path.sep, '/');
|
||||
return key_prefix + (path.sep === '\\' ? file.replace(/\\/g, '/') : file);
|
||||
}
|
||||
|
||||
let anErrorOccurred = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue