Skip to content

AsyncMixin

Defined in: src/mixins/async.ts:23

Internal

  • Pick<FileSystem, Exclude<_SyncFSKeys, "existsSync">>

protected optional _sync?: FileSystem

Defined in: src/mixins/async.ts:27

Internal

abstract createFileSync(path, options): InodeLike

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

Create the file at path with the given options.

string

CreationOptions

InodeLike

FileSystem.createFileSync


ioctlSync(context, command, …args): any

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

Internal

IoctlContext

number

any[]

any

FileSystem.ioctlSync


abstract linkSync(target, link): void

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

string

string

void

FileSystem.linkSync


abstract mkdirSync(path, options): InodeLike

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

string

CreationOptions

InodeLike

FileSystem.mkdirSync


queueDone(): Promise<void>

Defined in: src/mixins/async.ts:31

Promise<void>


abstract readdirSync(path): string[]

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

string

string[]

FileSystem.readdirSync


abstract readSync(path, buffer, start, end): void

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

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

void

FileSystem.readSync


ready(): Promise<void>

Defined in: src/mixins/async.ts:33

Promise<void>


readySync(): void

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

void

FileSystem.readySync


abstract renameSync(oldPath, newPath): void

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

string

string

void

FileSystem.renameSync


abstract rmdirSync(path): void

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

string

void

FileSystem.rmdirSync


abstract statSync(path): InodeLike

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

string

InodeLike

FileSystem.statSync


sync(): Promise<void>

Defined in: src/mixins/async.ts:35

Promise<void>


abstract syncSync(): void

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

void

FileSystem.syncSync


abstract touchSync(path, metadata): void

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

Modify metadata.

string

Partial<InodeLike>

void

FileSystem.touchSync


abstract unlinkSync(path): void

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

string

void

FileSystem.unlinkSync


abstract writeSync(path, buffer, offset): void

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

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

void

FileSystem.writeSync