FileSystemDirectoryHandle.entries()
Draft: This page is not complete.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The entries() method of the FileSystemDirectoryHandle interface returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
Syntax
FileSystemDirectoryHandle.entries();
Parameters
None
Return value
An array of the given FileSystemDirectoryHandle object's own enumerable property [key, value] pairs.
Examples
const dirHandle = await window.showDirectoryPicker() for await (const [key, value] of dirHandle.entries()) { console.log({ key, value }) }
Specifications
No specification data found for api.FileSystemDirectoryHandle.entries.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
entries |
86 |
86 |
No |
No |
72 |
No |
No |
86 |
No |
No |
No |
14.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/entries