![]() Note that for OSX this is the user's ~/Documents directory. Rely on the OS to clear this directory your app should always remove files asĬ - Holds app-specific files that should be syncedĬ - Files private to the app, but that are meaningful ( Android, BlackBerry 10)Ĭ - Temp directory that the OS can clear at will. ( iOS, Android, BlackBerry 10, OSX, windows)Ĭ - Application space onĬ - Where to put app-specific data files onĬ - Application cache on external storage.Ĭ - External storage (SD card) root. Runs low on storage, nevertheless, apps should not rely on the OS to delete files The OS may delete these files when the device ( iOS, Android, BlackBerry 10, windows)Ĭ - Directory for cached data files or any files ![]() ( iOS, Android, BlackBerry 10, OSX)Ĭ - Persistent and private data storage within theĪpplication's sandbox using internal memory (on Android, if you need to useĮxternal memory, use. Documents on iOS or /localState on windows] are read-write). Sandbox on iOS & windows this location is read-only (but specific subdirectories [like ( iOS, Android, BlackBerry 10, OSX, windows)Ĭ - Root directory of the application's Where to Store FilesĪs of v1.2.0, URLs to important file-system directories are provided.Įach URL is in the form file:///path/to/spot/, and can be converted to aĭirectoryEntry using window.resolveLocalFileSystemURL().Ĭ - Read-only directory where the application * These platforms do not support FileReader.readAsArrayBuffer nor FileWriter.write(blob). This plugin defines global cordova.file object.Īlthough in the global scope, it is not available until after the deviceready event. For additional examples (browser focused), see the HTML5 Rocks' FileSystem article.įor an overview of other storage options, refer to Cordova's To get a few ideas how to use the plugin, check out the sample at the bottom of this page. Note While the W3C FileSystem spec is deprecated for web browsers, the FileSystem APIs are supported in Cordova applications with this plugin for the platforms listed in the Supported Platforms list, with the exception of the Browser platform. This plugin is based on several specs, including :Īlthough most of the plugin code was written when an earlier spec was current:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |