Interface: OpfsDirectoryHandle
Minimal subset of the File System AccessOpfsDirectoryHandle interface that this module touches at runtime. Structurally compatible with the DOM-lib OpfsDirectoryHandle — at call sites you pass real OPFS handles directly.
Properties
| Property | Modifier | Type |
|---|---|---|
kind | readonly | "directory" |
name | readonly | string |
Methods
getDirectoryHandle()
ts
getDirectoryHandle(name: string, options?: {
create?: boolean;
}): Promise<OpfsDirectoryHandle>;Parameters
| Parameter | Type |
|---|---|
name | string |
options? | { create?: boolean; } |
options.create? | boolean |
Returns
Promise<OpfsDirectoryHandle>
getFileHandle()
ts
getFileHandle(name: string, options?: {
create?: boolean;
}): Promise<OpfsFileHandle>;Parameters
| Parameter | Type |
|---|---|
name | string |
options? | { create?: boolean; } |
options.create? | boolean |
Returns
Promise<OpfsFileHandle>
removeEntry()
ts
removeEntry(name: string, options?: {
recursive?: boolean;
}): Promise<void>;Parameters
| Parameter | Type |
|---|---|
name | string |
options? | { recursive?: boolean; } |
options.recursive? | boolean |
Returns
Promise<void>