Skip to content

ConcreteFS

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

Internal

Concrete FileSystem. This is a convenience type.

protected optional _mountPoint?: string

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

Internal

The last place this file system was mounted

FileSystem._mountPoint


protected _uuid: `${string}-${string}-${string}-${string}-${string}`

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

Internal

The UUID of the file system.

FileSystem._uuid


readonly attributes: ConstMap<FileSystemAttributes, keyof FileSystemAttributes, void | CaseFold | undefined> & Map<string, any>

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

FileSystemAttributes

IndexFS.attributes


optional label?: string

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

FileSystem.label


readonly name: string

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

The name for this file system. For example, tmpfs for an in memory one

IndexFS.name


readonly type: number

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

A unique ID for this kind of file system. Currently unused internally, but could be used for partition tables or something

IndexFS.type


uuid: `${string}-${string}-${string}-${string}-${string}`

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

FileSystem.uuid

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


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


exists(path): Promise<boolean>

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

Test whether or not path exists.

string

Promise<boolean>

FileSystem.exists


existsSync(path): boolean

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

Test whether or not path exists.

string

boolean

FileSystem.existsSync


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

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

Internal

IoctlContext

number

any[]

Promise<any>

FileSystem.ioctl


ioctlSync(context, command, …args): any

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

Internal

IoctlContext

number

any[]

any

FileSystem.ioctlSync


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

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

string

string

Promise<void>

FileSystem.link


abstract linkSync(target, link): void

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

string

string

void

FileSystem.linkSync


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

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

string

CreationOptions

Promise<InodeLike<number>>

FileSystem.mkdir


abstract mkdirSync(path, options): InodeLike

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

string

CreationOptions

InodeLike

FileSystem.mkdirSync


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


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/internal/filesystem.ts:213

Promise<void>

FileSystem.ready


readySync(): void

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

void

FileSystem.readySync


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

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

string

string

Promise<void>

FileSystem.rename


abstract renameSync(oldPath, newPath): void

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

string

string

void

FileSystem.renameSync


abstract rmdir(path): Promise<void>

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

string

Promise<void>

FileSystem.rmdir


abstract rmdirSync(path): void

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

string

void

FileSystem.rmdirSync


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

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

string

Promise<InodeLike<number>>

FileSystem.stat


abstract statSync(path): InodeLike

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

string

InodeLike

FileSystem.statSync


streamRead(path, options): ReadableStream

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

Read a file using a stream.

string

StreamOptions

ReadableStream

FileSystem.streamRead


streamWrite(path, options): WritableStream

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

Write a file using stream.

string

StreamOptions

WritableStream

FileSystem.streamWrite


abstract sync(): Promise<void>

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

Promise<void>

FileSystem.sync


abstract syncSync(): void

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

void

FileSystem.syncSync


toString(): string

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

string

FileSystem.toString


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

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

Modify metadata.

string

Partial<InodeLike>

Promise<void>

FileSystem.touch


abstract touchSync(path, metadata): void

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

Modify metadata.

string

Partial<InodeLike>

void

FileSystem.touchSync


abstract unlink(path): Promise<void>

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

string

Promise<void>

FileSystem.unlink


abstract unlinkSync(path): void

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

string

void

FileSystem.unlinkSync


usage(): UsageInfo

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

Default implementation.

UsageInfo

Implement

FileSystem.usage


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


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