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

How to use filesystem alias of cordova file plugin?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.4.0
    • None
    • None
    • None

    Description

      In the doc https://github.com/apache/cordova-plugin-file/blob/master/doc/index.md whe have this :

      Android

      files: The application's internal file storage directory
      files-external: The application's external file storage directory
      sdcard: The global external file storage directory (this is the root of the SD card, if one is installed). You must have the android.permission.WRITE_EXTERNAL_STORAGE permission to use this.
      cache: The application's internal cache directory
      cache-external: The application's external cache directory
      root: The entire device filesystem

      So, i put this code :

      window.requestFileSystem(LocalFileSystem.PERSISTENT, 10*1024*1024, function(fileSystem) {
      fileSystem.sdcard.getFile(path,

      { create: false }

      , fileExternExists, fileExternDoesNotExist);
      }, getFSFail);

      it's not working, but with "root" it's work. So, how to use filesystem alias ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alpg78 alpg 78
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: