Several client-side storage options are available to web applications, but one area that's been lacking until now is file I/O—the ability to organize binary data into a true hierarchy of folders. That has changed with the advent of HTML5. With this book, you'll learn how to provide your applications with a file system that enables them to create, read, and write files and folders in a sandboxed section of the user's local filesystem.
Author Eric Bidelman, a Senior Developer Programs Engineer on the Google Chrome team, provides several techniques and complete code examples for working with the HTML5 Filesystem API.
* Learn common operations for working with files and directories
* Become familiar with HTML5's storage use cases and security considerations
* Understand the storage options available, including temporary, persistent, and unlimited
* Write text or append data to an existing user file
* Import files into your application by accessing a user's hard drive
* Get techniques for using a file with filesystem, blob, or data URLs
* Use the synchronous version of the HTML5 Filesystem API within a Web Worker context
Inhaltsverzeichnis
< BR> - < BR> < BR> Preface< BR> < BR> < BR> - < BR> < BR> Chapter 1: Introduction< BR> < BR> < BR> - < BR> < BR> Chapter 2: Storage and Quota< BR> < BR> < BR> - < BR> < BR> Storage Types< BR> < BR> < BR> - < BR> < BR> Quota Management API< BR> < BR> < BR> < BR> < BR> - < BR> < BR> Chapter 3: Getting Started< BR> < BR> < BR> - < BR> < BR> Chapter 4: Working with Files< BR> < BR> < BR> - < BR> < BR> The FileEntry< BR> < BR> < BR> - < BR> < BR> Creating a File< BR> < BR> < BR> - < BR> < BR> Reading a File by Name< BR> < BR> < BR> - < BR> < BR> Writing to a File< BR> < BR> < BR> - < BR> < BR> Importing Files< BR> < BR> < BR> - < BR> < BR> Removing Files< BR> < BR> < BR> < BR> < BR> - < BR> < BR> Chapter 5: Working with Directories< BR> < BR> < BR> - < BR> < BR> The DirectoryEntry< BR> < BR> < BR> - < BR> < BR> Creating Directories< BR> < BR> < BR> - < BR> < BR> Reading the Contents of a Directory< BR> < BR> < BR> - < BR> < BR> Removing Directories< BR> < BR> < BR> < BR> < BR> - < BR> < BR> Chapter 6: Copying, Renaming, and Moving Entries< BR> < BR> < BR> - < BR> < BR> Chapter 7: Using Files< BR> < BR> < BR> - < BR> < BR> Filesystem URLs< BR> < BR> < BR> - < BR> < BR> Blob URLs< BR> < BR> < BR> - < BR> < BR> Data URLs< BR> < BR> < BR> < BR> < BR> - < BR> < BR> Chapter 8: The Synchronous API< BR> < BR> < BR> - < BR> < BR> Introduction< BR> < BR> < BR> - < BR> < BR> Opening a Filesystem< BR> < BR> < BR> - < BR> < BR> Working with Files and Directories< BR> < BR> < BR> - < BR> < BR> Handling Errors< BR> < BR> < BR> - < BR> < BR> Examples< BR> < BR> < BR> < BR> < BR> - < BR> < BR> Colophon< BR> < BR> < BR>