You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "alpg 78 (JIRA)" <ji...@apache.org> on 2014/05/10 23:59:31 UTC

[jira] [Created] (CB-6670) How to use filesystem alias of cordova file plugin?

alpg 78 created CB-6670:
---------------------------

             Summary: How to use filesystem alias of cordova file plugin?
                 Key: CB-6670
                 URL: https://issues.apache.org/jira/browse/CB-6670
             Project: Apache Cordova
          Issue Type: Bug
    Affects Versions: 3.4.0
            Reporter: alpg 78


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 ?



--
This message was sent by Atlassian JIRA
(v6.2#6252)