Skip to content

RepackedFileSystem

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:184

The file surface of a repacked store, as a TYPE.

RepackedVfs is the one-store implementation; MountedRepackedVfs is a composite of several. Everything that takes a store — the sync broker above all — takes this, so a host can hand it either without the two knowing about each other.

assertHealthy(): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:186

void


chmod(path, mode, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:217

string

number

bigint

void


close(): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:222

void

close(fd): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:223

number

void


fail(cause): never

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:187

unknown

never


fstat(fd): RepackedStat

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:207

number

RepackedStat


lstat(path): RepackedStat

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:194

string

RepackedStat


metrics(): RepackedVfsMetrics

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:188

RepackedVfsMetrics


mkdir(path, options): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:198

string

number

bigint

boolean

void


open(path, flags?, mode?, nowMs?): number

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:206

string

string

number

bigint

number


read(fd, buffer, offset, length, position?): number

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:208

number

Uint8Array

number

number

bigint

number


readdir(path): string[]

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:197

string

string[]


readFile(path): Uint8Array

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:204

string

Uint8Array


readlink(path): string

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:196

string

string


rename(oldPath, newPath, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:221

string

string

bigint

void


repack(reason?): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:189

RepackReason

void


resolvePath(path, follow?): string

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:192

The link-free absolute path path names; follow governs the final component only.

string

boolean

string


rmdir(path, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:220

string

bigint

void


runScheduledRepack(nowMs?): boolean

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:190

number

boolean


stat(path): RepackedStat

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:193

string

RepackedStat


strictSync(): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:185

void


symlink(target, path, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:195

string

string

bigint

void


truncate(path, size, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:205

string

bigint

bigint

void


unlink(path, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:219

string

bigint

void


utimes(path, atimeMs, mtimeMs, ctimeMs): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:218

string

bigint

bigint

bigint

void


write(fd, buffer, offset, length, position, nowMs): number

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:209

number

Uint8Array

number

number

bigint | undefined

bigint

number


writeFile(path, data, options): void

Defined in: packages/pgwasm/src/opfs/core/repacked-vfs.ts:199

string

string | Uint8Array<ArrayBufferLike>

string

string

number

bigint

void