Interface FileSystemDirectoryHandle
interface FileSystemDirectoryHandle {
kind: "directory";
name: string;
[asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
isSameEntry(other: FileSystemHandle): Promise<boolean>;
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
resolve(possibleDescendant: FileSystemHandle): Promise<string[]>;
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
}
kind: "directory";
name: string;
[asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
isSameEntry(other: FileSystemHandle): Promise<boolean>;
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
resolve(possibleDescendant: FileSystemHandle): Promise<string[]>;
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
}
Hierarchy
- FileSystemHandle
- FileSystemDirectoryHandle (view full)
Index
Properties
Methods
Methods
[asyncIterator]
- [async
Iterator] (): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]> Returns FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>
entries
- entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>
Returns FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>
getDirectoryHandle
- get
Directory (name, options?): Promise<FileSystemDirectoryHandle>Handle Parameters
- name: string
Optional
options: FileSystemGetDirectoryOptions
Returns Promise<FileSystemDirectoryHandle>
getFileHandle
- get
File (name, options?): Promise<FileSystemFileHandle>Handle Parameters
- name: string
Optional
options: FileSystemGetFileOptions
Returns Promise<FileSystemFileHandle>
isSameEntry
- is
Same (other): Promise<boolean>Entry Parameters
- other: FileSystemHandle
Returns Promise<boolean>
keys
- keys(): FileSystemDirectoryHandleAsyncIterator<string>
Returns FileSystemDirectoryHandleAsyncIterator<string>
removeEntry
- remove
Entry (name, options?): Promise<void> Parameters
- name: string
Optional
options: FileSystemRemoveOptions
Returns Promise<void>
resolve
- resolve(possibleDescendant): Promise<string[]>
Parameters
- possibleDescendant: FileSystemHandle
Returns Promise<string[]>
Available only in secure contexts.
MDN Reference