Abstract Class: MemoryHandle
Documentation / @wtf/platform-fs-memory / handles / MemoryHandle
Defined in: packages/platform-fs-memory/src/handles.ts:258
A handle of a file system in memory, of either kind: its entry by its path, its name, and the
standard’s isSameEntry and move. Extend MemoryFileHandle and
MemoryDirectoryHandle, which extend it, to add to the handles of a file system in memory.
Extended by
Constructors
Constructor
new MemoryHandle(fs, parts): MemoryHandle;Defined in: packages/platform-fs-memory/src/handles.ts:262
The handle of the entry of parts, its names from the root, of the file system fs.
Parameters
| Parameter | Type |
|---|---|
fs | MemoryFileSystem |
parts | readonly string[] |
Returns
MemoryHandle
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
kind | abstract | FileSystemHandleKind | packages/platform-fs-memory/src/handles.ts:259 |
Accessors
name
Get Signature
get name(): string;Defined in: packages/platform-fs-memory/src/handles.ts:283
Returns
string
Methods
isSameEntry()
isSameEntry(other): Promise<boolean>;Defined in: packages/platform-fs-memory/src/handles.ts:314
Parameters
| Parameter | Type |
|---|---|
other | FileSystemHandle |
Returns
Promise<boolean>
move()
move(destination, newName?): Promise<void>;Defined in: packages/platform-fs-memory/src/handles.ts:330
Parameters
| Parameter | Type |
|---|---|
destination | | string | FileSystemDirectoryHandle |
newName? | string |
Returns
Promise<void>
