Dart API Referencedart:htmlFileEntry

FileEntry Interface

DRAFT
This page is not complete.

The FileEntry interface of the FileSystem API represents a file in a file system.

Extends

Entry

Methods

Code void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]) #

Creates a new FileWriter associated with the file that the FileEntry represents.

void createWriter (
 in FileWriterCallback successCallback, optional ErrorCallback errorCallback
);
Parameter
successCallback
A callback that is called with the new FileWriter.
errorCallback
A callback that is called when errors happen.
Returns
void
void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]);

Code void file(FileCallback successCallback, [ErrorCallback errorCallback]) #

Returns a File that represents the current state of the file that this FileEntry represents.

void file (
  FileCallback successCallback, optional ErrorCallback errorCallback
);
Parameter
successCallback
A callback that is called with the new FileWriter.
errorCallback
A callback that is called when errors happen.
Returns
void
void file(FileCallback successCallback, [ErrorCallback errorCallback]);

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.