Skip to content

AsyncFSMethods

Defined in: src/mixins/shared.ts:53

Internal

Asynchronous FileSystem methods. This is a convenience type for all of the async operations.

abstract createFile(path, options): Promise<InodeLike<number>>

Defined in: src/internal/filesystem.ts:233

Create the file at path with the given options.

string

CreationOptions

Promise<InodeLike<number>>

FileSystem.createFile


exists(path): Promise<boolean>

Defined in: src/internal/filesystem.ts:257

Test whether or not path exists.

string

Promise<boolean>

FileSystem.exists


ioctl(context, command, …args): Promise<any>

Defined in: src/internal/filesystem.ts:359

Internal

IoctlContext

number

any[]

Promise<any>

FileSystem.ioctl


abstract link(target, link): Promise<void>

Defined in: src/internal/filesystem.ts:278

string

string

Promise<void>

FileSystem.link


abstract mkdir(path, options): Promise<InodeLike<number>>

Defined in: src/internal/filesystem.ts:248

string

CreationOptions

Promise<InodeLike<number>>

FileSystem.mkdir


abstract read(path, buffer, start, end): Promise<void>

Defined in: src/internal/filesystem.ts:290

Reads into a buffer

string

Uint8Array

The buffer to read into. You must set the byteOffset and byteLength appropriately!

number

The offset into the file to start reading from

number

The position in the file to stop reading

Promise<void>

FileSystem.read


abstract readdir(path): Promise<string[]>

Defined in: src/internal/filesystem.ts:251

string

Promise<string[]>

FileSystem.readdir


ready(): Promise<void>

Defined in: src/internal/filesystem.ts:213

Promise<void>

FileSystem.ready


abstract rename(oldPath, newPath): Promise<void>

Defined in: src/internal/filesystem.ts:218

string

string

Promise<void>

FileSystem.rename


abstract rmdir(path): Promise<void>

Defined in: src/internal/filesystem.ts:245

string

Promise<void>

FileSystem.rmdir


abstract stat(path): Promise<InodeLike<number>>

Defined in: src/internal/filesystem.ts:221

string

Promise<InodeLike<number>>

FileSystem.stat


abstract sync(): Promise<void>

Defined in: src/internal/filesystem.ts:281

Promise<void>

FileSystem.sync


abstract touch(path, metadata): Promise<void>

Defined in: src/internal/filesystem.ts:225

Modify metadata.

string

Partial<InodeLike>

Promise<void>

FileSystem.touch


abstract unlink(path): Promise<void>

Defined in: src/internal/filesystem.ts:240

string

Promise<void>

FileSystem.unlink


abstract write(path, buffer, offset): Promise<void>

Defined in: src/internal/filesystem.ts:304

Writes a buffer to a file

string

Uint8Array

The buffer to write. You must set the byteOffset and byteLength appropriately!

number

The offset in the file to start writing

Promise<void>

FileSystem.write