Skip to content

Read de external Storage sdcard #3

@maxlinux2000

Description

@maxlinux2000

Hi

I'm tring to read (and then write) the sdcard using:

    <script>
    function lsfuncion() {
        window.ShellExec.exec('ls /sdcard/', function(res){
          console.log('exit status: ' + res.exitStatus)
          console.log('cmd output: ' + res.output)
//          alert(res.output)
            var div = document.getElementById("COMMAND");
            div.textContent = res.output;
            var text = div.textContent;
        })
    }    
    </script>
<div id="wrapper">
<p><a href="#" class="btn" onclick="lsfuncion();">$ ls /sdcard</a></p>
</div>  
<div id="COMMAND"></div>

but the result is: "Process has not yet termintated: 3577"
...that sound like the plugin can not read an external device mounted in the filesystem.

no problem if we try to read de root /

Can have a look for it, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions