Search code examples
androidcordovavisual-studio-2015multi-device-hybrid-apps

Cordova 5 VS 2015. Android App Can Not Create Folder


I Updated to VS 2015 and Cordova 5. Since then i cannot create any folders or files anymore when using android.

There no errors thrown or anything what can help me solving this problem.

I am trying this:

      function onDeviceReady() {

         window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail); 

    }

    function gotFS(fileSystem) {
        fileSystem.root.getDirectory("mynewfolder", { create: true }, gotDir, fail);
        console.log(fileSystem.root);

    }

    function gotDir(dirEntry) {
        dirEntry.getFile("myfile.txt", { create: true, exclusive: true }, gotFile, fail);
    }

    function gotFile(fileEntry) {
        // Do something with fileEntry here
    }

    function fail(error) {
        console.log(error.code);
    }

It say's all fine and folder is created but it's not. Any help on this?


Solution

  • Problem ist that adding the plugins via VS2015 not working correctly. Had to add them via CLI