{{APIRef("File System API")}}{{Non-standard_header}}
The FileSystemDirectoryReader
interface of the File and Directory Entries API lets you access the {{domxref("FileEntry")}}-based objects (generally {{domxref("FileSystemFileEntry")}} or {{domxref("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 {{anch("Browser compatibility")}} section for details.
Methods
- {{domxref("FileSystemDirectoryReader.readEntries", "readEntries()")}}
- Returns a an array containing some number of the directory's entries. Each item in the array is an object based on {{domxref("FileSystemEntry")}}—typically either {{domxref("FileSystemFileEntry")}} or {{domxref("FileSystemDirectoryEntry")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('File System API')}} | {{Spec2('File System API')}} | Draft of proposed API |
This API has no official W3C or WHATWG specification.
Browser compatibility
{{ CompatibilityTable }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Microsoft Edge | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 13 {{ property_prefix("webkit") }} | {{ CompatGeckoDesktop(50) }} | {{ CompatNo }} | {{CompatVersionUnknown}}[1] | {{ CompatNo }} | {{ CompatNo }} |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{ CompatNo }} | {{ CompatVersionUnknown }} {{ property_prefix("webkit") }} | {{ CompatGeckoMobile(50) }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} |
[1] Implemented in Microsoft Edge as WebKitDirectoryReader
.
See also
- File and Directory Entries API
- Introduction to the File System API
- {{domxref("FileSystemDirectoryEntry")}}
- {{domxref("FileSystem")}}