HTML and CSS Reference
The File System API was added to HTML5 much later than most APIs, and so browser
support for it is far less mature. Because Chrome is the only browser currently offering any
implementation of the API, the code in this section has been tested only on Chrome. Every
effort has been made to ensure that it will work in other browsers at a later stage, but un-
fortunately we can't guarantee anything on that front.
The File System API offers almost all the needed functionality to create and manage a
sandboxed filesystem except the ability to request local storage and analyze local storage
availability. To do this, you need the Quota Management API.
The Quota Management API enables the application to determine if enough local file stor-
age exists to save data. If sufficient space exists, the application can use the Quota Man-
agement API to request storage via a request for quota.
The File System API makes use of other file-related APIs such as the File Writer and File
APIs. This section will be making calls to these underlying APIs and pointing them out as
the sandboxed filesystem is built.
You'll walk through seven steps to create the filesystem:
• Step 1: Create a persistent filesystem.
• Step 2: Retrieve and display a file list.
• Step 3: Load files in the File Editor view using the File API.
• Step 4: View, edit, and delete files in the filesystem.
• Step 5: Create new, empty files in the filesystem.