Interface: OpfsDirectoryHandle
Defined in: batteries/storage/opfs/index.ts:79
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 | Defined in |
|---|---|---|---|
kind | readonly | "directory" | batteries/storage/opfs/index.ts:80 |
name | readonly | string | batteries/storage/opfs/index.ts:81 |
Methods
getDirectoryHandle()
ts
getDirectoryHandle(name: string, options?: {
create?: boolean;
}): Promise<OpfsDirectoryHandle>;Defined in: batteries/storage/opfs/index.ts:83
Parameters
| Parameter | Type |
|---|---|
name | string |
options? | { create?: boolean; } |
options.create? | boolean |
Returns
Promise<OpfsDirectoryHandle>
getFileHandle()
ts
getFileHandle(name: string, options?: {
create?: boolean;
}): Promise<OpfsFileHandle>;Defined in: batteries/storage/opfs/index.ts:82
Parameters
| Parameter | Type |
|---|---|
name | string |
options? | { create?: boolean; } |
options.create? | boolean |
Returns
Promise<OpfsFileHandle>
removeEntry()
ts
removeEntry(name: string, options?: {
recursive?: boolean;
}): Promise<void>;Defined in: batteries/storage/opfs/index.ts:84
Parameters
| Parameter | Type |
|---|---|
name | string |
options? | { recursive?: boolean; } |
options.recursive? | boolean |
Returns
Promise<void>