Skip to content

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

ParameterType
contextNodeShapedContext
pathstring

Returns

NodeShapedHandle

Properties

PropertyModifierTypeDefined in
kindabstractFileSystemHandleKindpackages/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

ParameterType
otherFileSystemHandle

Returns

Promise<boolean>


move()

move(destination, newName?): Promise<void>;

Defined in: packages/platform-fs-adapter/src/handles.ts:270

Parameters

ParameterType
destination| string | FileSystemDirectoryHandle
newName?string

Returns

Promise<void>