Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.29 KB

File metadata and controls

35 lines (22 loc) · 1.29 KB
title slug page-type browser-compat
FileSystemFileEntry
Web/API/FileSystemFileEntry
web-api-interface
api.FileSystemFileEntry

{{APIRef("File and Directory Entries API")}}

The FileSystemFileEntry interface of the File and Directory Entries API represents a file in a file system. It offers properties describing the file's attributes, as well as the {{domxref("FileSystemFileEntry.file", "file()")}} method, which creates a {{domxref("File")}} object that can be used to read the file.

{{InheritanceDiagram}}

Instance properties

Inherits the properties of its parent interface, {{domxref("FileSystemEntry")}}, but has no properties unique to this interface.

Instance methods

  • {{domxref("FileSystemFileEntry.createWriter", "createWriter()")}} {{deprecated_inline}} {{non-standard_inline}}
    • : Returns a {{domxref("FileWriter")}} object which can be used to write data into the file represented by the directory entry.
  • {{domxref("FileSystemFileEntry.file", "file()")}}
    • : Creates a new {{domxref("File")}} object which can be used to read the file.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also