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

Ian Clelland commented on CB-6201:
----------------------------------

What full path are you seeing returned? And what are you expecting?

For a file like {{cdvfile://localhost/persistent/here/is/my/file.jpg}}, the 
spec says that the fullPath attribute of the FileEntry should be

{code}
/here/is/my/file.jpg
{code}

since that is the path, relative to the root of the PERSISTENT file system. 
File 1.0.0 as well as 1.0.1 should both return that. Previous versions of file 
(up to 0.2.5) would have used a file URL like 
{{file:///storage/emulated/0/here/is/my/file.jpg}}, and would have used that 
whole URL (including the {{file://}} prefix) as the {{fullPath}}.

It's possible that you're seeing an issue with copyTo and moveTo, and I'll 
investigate that possibility. A bit more information about what you're actually 
seeing in your code would be helpful, though.

> Invalid full path and URI returned from fileEntry.moveTo and fileEntry.copyTo 
> ------------------------------------------------------------------------------
>
>                 Key: CB-6201
>                 URL: https://issues.apache.org/jira/browse/CB-6201
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 1.1.0
>         Environment: I'm building Android and iOS with build.phonegap.com 
> version 3.10.  This issue is occuring on both Android and iOS.
>            Reporter: brian johnston
>            Assignee: Ian Clelland
>
> fileEntry.fullPath does not return the full path in version 1.1.0.  However, 
> version 1.0.0 of the file plugin does return the full path.  This issue 
> occurs on both iOS and Android.  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to