Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The FileSystemDirectoryReader
interface of the File and Directory Entries API lets you access the FileEntry
-based objects (generally FileSystemFileEntry
or FileSystemDirectoryEntry
) representing each entry in a directory.
Because this is a non-standard API, whose specification is not currently on a standards track, it's important to keep in mind that not all browsers implement it, and those that do may implement only small portions of it. Check the Browser compatibility section for details.
Methods
readEntries()
- Returns an array containing some number of the directory's entries. Each item in the array is an object based on
FileSystemEntry
—typically eitherFileSystemFileEntry
orFileSystemDirectoryEntry
.
Specifications
Specification | Status | Comment |
---|---|---|
File and Directory Entries API | Draft | Draft of proposed API |
This API has no official W3C or WHATWG specification.
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome Full support 8 Full support 8 Alternate Name' Uses the non-standard name: |
Edge Full support ≤18 Full support ≤18 Alternate Name' Uses the non-standard name: |
Firefox
Full support 50 |
IE
No support No |
Opera Full support Yes Full support Yes Prefixed' Implemented with the vendor prefix: webkit |
Safari
Full support 11.1 |
WebView Android Full support ≤37 Full support ≤37 Alternate Name' Uses the non-standard name: |
Chrome Android Full support 18 Full support 18 Alternate Name' Uses the non-standard name: |
Firefox Android
Full support 50 |
Opera Android
No support No |
Safari iOS
Full support 11.3 |
Samsung Internet Android Full support 1.0 Full support 1.0 Alternate Name' Uses the non-standard name: |
Chrome
Full support 8 |
Edge
? |
Firefox
Full support Yes |
IE
No support No |
Opera
? |
Safari
Full support 11.1 |
WebView Android
Full support ≤37 |
Chrome Android
Full support 18 |
Firefox Android
Full support Yes |
Opera Android
No support No |
Safari iOS
Full support 11.3 |
Samsung Internet Android
Full support 1.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Non-standard. Expect poor cross-browser support.'
- Non-standard. Expect poor cross-browser support.
- Deprecated. Not for use in new websites.'
- Deprecated. Not for use in new websites.
- Uses a non-standard name.'
- Uses a non-standard name.
- Requires a vendor prefix or different name for use.'
- Requires a vendor prefix or different name for use.
See also
- File and Directory Entries API
- Introduction to the File System API
FileSystemDirectoryEntry
FileSystem
FileSystemDirectoryReader by Mozilla Contributors is licensed under CC-BY-SA 2.5.