Abstract Class: NodeShapedHandle
Documentation / @wtf/platform-fs-adapter / handles / NodeShapedHandle
Defined in: packages/platform-fs-adapter/src/handles.ts:190
A handle of a file system shaped as Node’s, of either kind: its entry by its path, its name, and
the standard’s isSameEntry and move. Extend NodeShapedFileHandle and
NodeShapedDirectoryHandle, which extend it, to add to the handles of a file system.
Extended by
Constructors
Constructor
new NodeShapedHandle(context, path): NodeShapedHandle;Defined in: packages/platform-fs-adapter/src/handles.ts:194
The handle of the entry of path, of the file system and the writables of context.
Parameters
| Parameter | Type |
|---|---|
context | NodeShapedContext |
path | string |
Returns
NodeShapedHandle
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
kind | abstract | FileSystemHandleKind | packages/platform-fs-adapter/src/handles.ts:191 |
Accessors
name
Get Signature
get name(): string;Defined in: packages/platform-fs-adapter/src/handles.ts:215
Returns
string
Methods
isSameEntry()
isSameEntry(other): Promise<boolean>;Defined in: packages/platform-fs-adapter/src/handles.ts:253
Parameters
| Parameter | Type |
|---|---|
other | FileSystemHandle |
Returns
Promise<boolean>
move()
move(destination, newName?): Promise<void>;Defined in: packages/platform-fs-adapter/src/handles.ts:270
Parameters
| Parameter | Type |
|---|---|
destination | | string | FileSystemDirectoryHandle |
newName? | string |
Returns
Promise<void>
