cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Ginchereau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-8708) copyTo error
Date Thu, 05 Nov 2015 18:08:27 GMT

     [ https://issues.apache.org/jira/browse/CB-8708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Ginchereau updated CB-8708:
---------------------------------
    Labels: iOS  (was: )

> copyTo error 
> -------------
>
>                 Key: CB-8708
>                 URL: https://issues.apache.org/jira/browse/CB-8708
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>         Environment: org.apache.cordova.file 1.3.4-dev "File" iOS
>            Reporter: Rafael B
>              Labels: iOS
>
> I found a new error, but now, IOS version.
> {code}
> var app = {}; 
> window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFileSystem, function() { console.log("3
"+JSON.stringify(rs));});        
> function gotFileSystem(v) { 
>     app.fileSystem = v; 
>     var url = cordova.file.applicationDirectory+"www/1.jpg"; 
>     window.resolveLocalFileSystemURL(url, function(entry) {
>         var fullPath = cordova.file.applicationStorageDirectory;   
>         window.resolveLocalFileSystemURL(fullPath, function(entryDirectory) {
>             entry.copyTo(entryDirectory, 'newfile.jpg', function(rs) { 
>                 console.log(JSON.stringify(rs)); //success           
>             }, function() { console.log("1 "+JSON.stringify(rs));} ); //error code 12
in next test's.
>         }, function() { console.log("2 "+JSON.stringify(rs));} );                   
>     }, function() { console.log("3 "+JSON.stringify(rs));} );  
> }
> {code}
> If execute first time, return success, but execute others time, return error (error code
12)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message