You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2014/05/12 19:09:15 UTC
[jira] [Resolved] (CB-6670) How to use filesystem alias of cordova
file plugin?
[ https://issues.apache.org/jira/browse/CB-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-6670.
-------------------------------
Resolution: Duplicate
Short answer is that there's no API for this yet, but we're within a few weeks of adding it in. You can work around the issue for now via:
{code}
window.resolveLocalFileSystemURL('file:///sdcard', win, fail)
{code}
> 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)