mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: s3put not replacing enough \\ (#25866)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user