Get to know MDN better
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 file() method, which creates a File object that can be used to read the file.
FileSystemEntry FileSystemFileEntryInherits the properties of its parent interface, FileSystemEntry, but has no properties unique to this interface.
Returns a FileWriter object which can be used to write data into the file represented by the directory entry.
file()Creates a new File object which can be used to read the file.
| File and Directory Entries API # api-fileentry |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Feb 20, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.