Skip to content

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

ParameterType
fsMemoryFileSystem
partsreadonly string[]

Returns

MemoryHandle

Properties

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

ParameterType
otherFileSystemHandle

Returns

Promise<boolean>


move()

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

Defined in: packages/platform-fs-memory/src/handles.ts:330

Parameters

ParameterType
destination| string | FileSystemDirectoryHandle
newName?string

Returns

Promise<void>