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.
Inherits the properties of its parent interface, FileSystemEntry, but has no properties unique to this interface.
createWriter() Deprecated Non-standard
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.
| Specification |
|---|
| File and Directory Entries API> # api-fileentry> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
FileSystemFileEntry |
8 | 79 | 50 | 15 | 11.1 | 18 | 50 | 14 | 11.3 | 1.0 | 4.4 | 11.3 |
createWriter |
8 | 79 | 50–52While thecreateWriter() method existed, it immediately called errorCallback with the NS_ERROR_DOM_SECURITY_ERR error. |
15 | No | 18 | 50–52While thecreateWriter() method existed, it immediately called errorCallback with the NS_ERROR_DOM_SECURITY_ERR error. |
14 | No | 1.0 | 4.4 | No |
file |
8 | 79 | 50 | 15 | 11.1 | 18 | 50 | 14 | 11.3 | 1.0 | 4.4 | 11.3 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry