[
https://issues.apache.org/jira/browse/CB-6518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13981060#comment-13981060
]
brian johnston commented on CB-6518:
------------------------------------
this.moveFileByUri = function (fromFileUri, toFolderName, toFileName, callback)
{
var me = app.log('||atsFile.moveFileByUri||');
var dbg = "::fromFileUri:{0} ::toFolderName: {1} ::toFileName:{2}";
app.log(me + dbg.format(fromFileUri, toFolderName, toFileName));
window.resolveLocalFileSystemURI(fromFileUri, resolveOnSuccess,
resOnError);
//Callback function when the file system uri has been resolved
function resolveOnSuccess(entry) {
app.log(me + '::entry::' + entry.toURL());
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function
(fileSys) {
app.log(me + '::fileSys::' + fileSys.root.toURL());
//The folder is created if doesn't exist
fileSys.root.getDirectory(toFolderName,
{ create: true, exclusive: false },
function (directory) {
app.log(me + '::directory::' +
directory.toURL());
entry.moveTo(directory, toFileName,
callback, resOnError);
},
resOnError);
},
resOnError);
}
function resOnError(error) {
app.logError(me + getFileErrorMessage(error));
}
}
> Unable to create directory on Windows 8
> ---------------------------------------
>
> Key: CB-6518
> URL: https://issues.apache.org/jira/browse/CB-6518
> Project: Apache Cordova
> Issue Type: Bug
> Components: Windows 8
> Affects Versions: 1.9.0
> Reporter: brian johnston
> Assignee: Jesse MacFadyen
>
> No error is returned from "fileSys.root.getDirectory("Foo",{ create: true,
> exclusive: false },..". However, the folder is not visible on the phone file
> system. To test I plugged the phone into my Windows 8 computer with a USB
> cable and browsed all the visible phone folders. The folder is not there.
--
This message was sent by Atlassian JIRA
(v6.2#6252)