Rafael B created CB-8708:
----------------------------
Summary: copyTo error
Key: CB-8708
URL: https://issues.apache.org/jira/browse/CB-8708
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Environment: org.apache.cordova.file 1.3.4-dev "File"
Reporter: Rafael B
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: [email protected]
For additional commands, e-mail: [email protected]