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 Summary)
Index
Properties
Methods
Methods
[asyncIterator]
- "[asyncIterator]"(): FileSystemDirectoryHandleAsyncIterator<
[string, FileSystemHandle],
> Returns FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>
entries
- entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>
Returns FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>
getDirectoryHandle
- getDirectoryHandle(
name: string,
options?: FileSystemGetDirectoryOptions,
): Promise<FileSystemDirectoryHandle> Parameters
- name: string
Optional
options: FileSystemGetDirectoryOptions
Returns Promise<FileSystemDirectoryHandle>
getFileHandle
- getFileHandle(
name: string,
options?: FileSystemGetFileOptions,
): Promise<FileSystemFileHandle> Parameters
- name: string
Optional
options: FileSystemGetFileOptions
Returns Promise<FileSystemFileHandle>
isSameEntry
- isSameEntry(other: FileSystemHandle): Promise<boolean>
Parameters
- other: FileSystemHandle
Returns Promise<boolean>
keys
- keys(): FileSystemDirectoryHandleAsyncIterator<string>
Returns FileSystemDirectoryHandleAsyncIterator<string>
removeEntry
- removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>
Parameters
- name: string
Optional
options: FileSystemRemoveOptions
Returns Promise<void>
resolve
- resolve(possibleDescendant: FileSystemHandle): Promise<string[]>
Parameters
- possibleDescendant: FileSystemHandle
Returns Promise<string[]>
Available only in secure contexts.
MDN Reference