Skip to content

IsoFS

Defined in: src/iso/fs.ts:37

Mounts an ISO file as a read-only file system.

Supports:

  • Vanilla ISO9660 ISOs
  • Microsoft Joliet and Rock Ridge extensions to the ISO9660 standard
  • ReadonlyMixin & AsyncFSMethods<this> & FileSystem<this>

new IsoFS(options): IsoFS

Defined in: src/iso/fs.ts:68

Constructs a read-only file system from the given ISO.

IsoOptions

IsoFS

Readonly(Sync(FileSystem)).constructor

protected optional _mountPoint?: string

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:143

Internal

The last place this file system was mounted

Readonly(Sync(FileSystem))._mountPoint


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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:149

Internal

The UUID of the file system.

Readonly(Sync(FileSystem))._uuid


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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:154

FileSystemAttributes

ZipFS.attributes


protected data: Uint8Array

Defined in: src/iso/fs.ts:38


protected inodes: Map<string, Inode>

Defined in: src/iso/fs.ts:48

Inodes for each path.

ISO images do not have inodes, so they are created on demand and kept. This gives every file a stable, unique ino, which the VFS needs to tell files apart. Keeping them also means metadata changes are not lost, though this file system is read-only.


optional label?: string

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:138

Readonly(Sync(FileSystem)).label


readonly name: string

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:137

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

Readonly(Sync(FileSystem)).name


readonly options: IsoOptions

Defined in: src/iso/fs.ts:68


protected pvd: PrimaryVolumeDescriptor

Defined in: src/iso/fs.ts:39


readonly type: number

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:132

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

Readonly(Sync(FileSystem)).type

get uuid(): `${string}-${string}-${string}-${string}-${string}`

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:150

`${string}-${string}-${string}-${string}-${string}`

Readonly(Sync(FileSystem)).uuid

createFile(path, flag, mode): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:10

string

string

number

Promise<never>

Readonly(Sync(FileSystem)).createFile

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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:186

Create the file at path with the given options.

string

CreationOptions

Promise<InodeLike<number>>

Readonly(Sync(FileSystem)).createFile


createFileSync(path, flag, mode): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:11

string

string

number

never

Readonly(Sync(FileSystem)).createFileSync

createFileSync(path, options): InodeLike

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:190

Create the file at path with the given options.

string

CreationOptions

InodeLike

Readonly(Sync(FileSystem)).createFileSync


exists(path): Promise<boolean>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:202

Test whether or not path exists.

string

Promise<boolean>

ZipFS.exists


existsSync(path): boolean

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:206

Test whether or not path exists.

string

boolean

Readonly(Sync(FileSystem)).existsSync


protected inodeFor(path, create): Inode

Defined in: src/iso/fs.ts:52

Gets the inode for a path, creating it with create if it does not exist yet

string

() => Partial<InodeLike>

Inode


link(srcpath, dstpath): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:18

string

string

Promise<never>

Readonly(Sync(FileSystem)).link

link(target, link): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:207

string

string

Promise<void>

Readonly(Sync(FileSystem)).link


linkSync(srcpath, dstpath): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:19

string

string

never

Readonly(Sync(FileSystem)).linkSync

linkSync(target, link): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:208

string

string

void

Readonly(Sync(FileSystem)).linkSync


mkdir(path, mode): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:16

string

number

Promise<never>

Readonly(Sync(FileSystem)).mkdir

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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:195

string

CreationOptions

Promise<InodeLike<number>>

Readonly(Sync(FileSystem)).mkdir


mkdirSync(path, mode): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:17

string

number

never

Readonly(Sync(FileSystem)).mkdirSync

mkdirSync(path, options): InodeLike

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:196

string

CreationOptions

InodeLike

Readonly(Sync(FileSystem)).mkdirSync


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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:217

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>

Readonly(Sync(FileSystem)).read


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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:197

string

Promise<string[]>

Readonly(Sync(FileSystem)).readdir


readdirSync(path): string[]

Defined in: src/iso/fs.ts:129

string

string[]

Readonly(Sync(FileSystem)).readdirSync


readSync(path, buffer, offset, end): void

Defined in: src/iso/fs.ts:141

Reads into a buffer

string

Uint8Array

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

number

number

The position in the file to stop reading

void

Readonly(Sync(FileSystem)).readSync


ready(): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:173

Promise<void>

Readonly(Sync(FileSystem)).ready


readySync(): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:174

void

Readonly(Sync(FileSystem)).readySync


rename(oldPath, newPath): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:8

string

string

Promise<never>

Readonly(Sync(FileSystem)).rename

rename(oldPath, newPath): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:175

string

string

Promise<void>

Readonly(Sync(FileSystem)).rename


renameSync(oldPath, newPath): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:9

string

string

never

Readonly(Sync(FileSystem)).renameSync

renameSync(oldPath, newPath): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:176

string

string

void

Readonly(Sync(FileSystem)).renameSync


rmdir(path): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:14

string

Promise<never>

Readonly(Sync(FileSystem)).rmdir

rmdir(path): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:193

string

Promise<void>

Readonly(Sync(FileSystem)).rmdir


rmdirSync(path): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:15

string

never

Readonly(Sync(FileSystem)).rmdirSync

rmdirSync(path): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:194

string

void

Readonly(Sync(FileSystem)).rmdirSync


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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:177

string

Promise<InodeLike<number>>

Readonly(Sync(FileSystem)).stat


statSync(path): Inode

Defined in: src/iso/fs.ts:122

string

Inode

Readonly(Sync(FileSystem)).statSync


streamRead(path, options): ReadableStream

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:241

Read a file using a stream.

string

StreamOptions

ReadableStream

Readonly(Sync(FileSystem)).streamRead


streamWrite(path, options): WritableStream

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:246

Write a file using stream.

string

StreamOptions

WritableStream

Readonly(Sync(FileSystem)).streamWrite


sync(): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:22

Promise<never>

Readonly(Sync(FileSystem)).sync

sync(): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:209

Promise<void>

Readonly(Sync(FileSystem)).sync


syncSync(): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:23

never

Readonly(Sync(FileSystem)).syncSync

syncSync(): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:210

void

Readonly(Sync(FileSystem)).syncSync


toString(): string

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:166

string

Readonly(Sync(FileSystem)).toString


touch(path, metadata): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:20

string

Readonly<InodeLike>

Promise<never>

Readonly(Sync(FileSystem)).touch

touch(path, metadata): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:180

Modify metadata.

string

Partial<InodeLike>

Promise<void>

Readonly(Sync(FileSystem)).touch


touchSync(path, metadata): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:21

string

Readonly<InodeLike>

never

Readonly(Sync(FileSystem)).touchSync

touchSync(path, metadata): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:182

Modify metadata.

string

Partial<InodeLike>

void

Readonly(Sync(FileSystem)).touchSync


unlink(path): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:12

string

Promise<never>

Readonly(Sync(FileSystem)).unlink

unlink(path): Promise<void>

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:191

string

Promise<void>

Readonly(Sync(FileSystem)).unlink


unlinkSync(path): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:13

string

never

Readonly(Sync(FileSystem)).unlinkSync

unlinkSync(path): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:192

string

void

Readonly(Sync(FileSystem)).unlinkSync


usage(): UsageInfo

Defined in: src/iso/fs.ts:115

Default implementation.

UsageInfo

Implement

Readonly(Sync(FileSystem)).usage


write(path, buffer, offset): Promise<never>

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:24

string

Uint8Array

number

Promise<never>

Readonly(Sync(FileSystem)).write

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

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:230

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>

Readonly(Sync(FileSystem)).write


writeSync(path, buffer, offset): never

Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:25

string

Uint8Array

number

never

Readonly(Sync(FileSystem)).writeSync

writeSync(path, buffer, offset): void

Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:236

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

Readonly(Sync(FileSystem)).writeSync