FileSystemDirectoryHandle: keys() method
The keys()
method of the FileSystemDirectoryHandle
interface returns a new array iterator containing the keys for each item in FileSystemDirectoryHandle
.
Syntax
FileSystemDirectoryHandle.keys()
Parameters
Return value
Examples
const dirHandle = await window.showDirectoryPicker();
for await (const key of dirHandle.keys()) {
console.log(key);
}
Specifications
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 |
keys |
86 |
86 |
111 |
No |
72 |
15.2 |
No |
86 |
111 |
61 |
15.2 |
14.0 |
See also