Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6335

Blackberry file plugin accessing file system returns no results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Environment:

      File plugin 1.0.1, Blackberry 10.2.x emulator & device (Z10)

      Description

      Trying to access the Blackberry shared folder and list it's contents but the file plugin is returning no entries (FileError Code 1).

      blackberry.io.sandbox is set to false and the blackberry.io plugin is installed to access the shared folder path.

      I have tested on both emulator and device (10.2) with the following code:

      window.requestFileSystem(
            LocalFileSystem.PERSISTENT,
            1024 * 1024,
            function (fs) {
      
                fs.root.getDirectory(
                  blackberry.io.sharedFolder,
                  {},
                  function(result) {
                    var reader = result.createReader();
                    reader.readEntries(
                      function(entries) {
                        console.log(entries);
                      },
                      function (error) {
                        console.log('Failed to list directory contents: ', error);
                      }
                    );
                  },
                  function(error) {
                    console.log('Error accessing shared folder');
                  }
                );
            },
            function () {
              console.log('Error accessing local file system');
            }
          );
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bostondv Boston Dell-Vandenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: