Dart API Referencedart:htmlFileEntrySync

FileEntrySync Interface

DRAFT
This page is not complete.

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

Extends

EntrySync

Methods

Code FileWriterSync createWriter() #

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
FileWriterSync createWriter();

Code File file() #

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
File file();

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.