From 569568f8b437ec0a0248b4017479b5421456e619 Mon Sep 17 00:00:00 2001 From: Jan Visser Date: Wed, 1 Apr 2015 12:50:37 +0200 Subject: [PATCH] Replace all slashes in windows path Instead of just the first one --- src/windows/FileTransferProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/FileTransferProxy.js b/src/windows/FileTransferProxy.js index 659e5c9..d11a026 100644 --- a/src/windows/FileTransferProxy.js +++ b/src/windows/FileTransferProxy.js @@ -312,7 +312,7 @@ exec(win, fail, 'FileTransfer', 'upload', var nativeURI = storageFile.path.replace(appData.localFolder.path, 'ms-appdata:///local') .replace(appData.temporaryFolder.path, 'ms-appdata:///temp') - .replace('\\', '/'); + .replace(/\\/g, '/'); // Passing null as error callback here because downloaded file should exist in any case // otherwise the error callback will be hit during file creation in another place