10. File

The Cordova File API provides an application with the methods it needs to interact with the device’s local file system. The API exposes methods an application can use to browse the file system, read, write, copy, move, and remove files. An application cannot access just any part of the file system using this API, only the temporary and persistent file storage locations (described later) on a mobile device.

Tip

If you want to access other parts of the device file system, the file system roots plugin provides access to some additional file locations: http://plugins.cordova.io/#/package/org.apache.cordova.file-system-roots. There is some discussion on the dev list about making this plugin part of the core or working the plugin’s capabilities ...

Get Apache Cordova API Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.