[ 
https://issues.apache.org/jira/browse/CB-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006918#comment-15006918
 ] 

Sergey Shakhnazarov commented on CB-8609:
-----------------------------------------

[~ferryfax], can you please confirm if [this 
commit|https://github.com/apache/cordova-plugin-file-transfer/commit/569568f8b437ec0a0248b4017479b5421456e619]
 has fixed the issue?

> File-Transfer download to subfolder on Windows causes a FileProxy exception
> ---------------------------------------------------------------------------
>
>                 Key: CB-8609
>                 URL: https://issues.apache.org/jira/browse/CB-8609
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: Windows 8.1 desktop
>            Reporter: Gary Howard
>              Labels: triaged, windows
>
> The nativeURI passed into FileProxy.resolveLocalFileSystemURI by 
> FileTransfer.downloadOperation contains a Windows \ that causes the validName 
> check to fail. As the fail function passed is null this gives an exception. 
> The FileTransfer.downloadOperation for Windows has a line of code that 
> converts the storageFile.path to a nativeURL and part of this is to convert 
> Windows \ to /. Unfortunately it only replaces the first one which is not 
> enough when the path contains sub-folders. The fix is to use .replace(/\\/g, 
> '/') instead of .replace('\\', '/').



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to