I'm trying to get external storage path in Phonegap. I'm using this code but it never handles the correct SDCard path.

```
(function(){
    window.appRootDirName = ".myapp";
    document.addEventListener("deviceready", onDeviceReady, false);

    function onDeviceReady() {
        alert(cordova.file.externalRootDirectory);
        console.log("device is ready");
        window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
        window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
    }

    function fail() {
        console.log("failed to get filesystem");
    }

    function gotFS(fileSystem) {
        console.log("filesystem got");
        fileSystem.root.getDirectory(window.appRootDirName, {
            create : true,
            exclusive : false
        }, dirReady, fail);
    }

    function dirReady(entry) {
        window.appRootDir = entry;
        alert(JSON.stringify(window.appRootDir));
    }
})();

```

also 

```
<preference name="AndroidPersistentFileLocation" value="Internal" />

```

and

```
<preference name="AndroidPersistentFileLocation" value="Emulated" />

```

doesn't help.

Are there a way to get the correct SDCard path on Android 6 with phonegap?