Class IsoFS

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

Supports:

  • Vanilla ISO9660 ISOs
  • Microsoft Joliet and Rock Ridge extensions to the ISO9660 standard

Hierarchy

  • {
        createFile(path: string, flag: string, mode: number): Promise<File>;
        createFileSync(path: string, flag: string, mode: number): File;
        link(srcpath: string, dstpath: string): Promise<void>;
        linkSync(srcpath: string, dstpath: string): void;
        metadata(): FileSystemMetadata;
        mkdir(path: string, mode: number): Promise<void>;
        mkdirSync(path: string, mode: number): void;
        rename(oldPath: string, newPath: string): Promise<void>;
        renameSync(oldPath: string, newPath: string): void;
        rmdir(path: string): Promise<void>;
        rmdirSync(path: string): void;
        sync(path: string, data: Uint8Array, stats: Readonly<Stats>): Promise<void>;
        syncSync(path: string, data: Uint8Array, stats: Readonly<Stats>): void;
        unlink(path: string): Promise<void>;
        unlinkSync(path: string): void;
    } & ExtractProperties<FileSystem, ((...args: any[]) => Promise<unknown>)> & FileSystem<this>
    • IsoFS

Constructors

  • Deprecated. Please use IsoFS.Create() method instead.

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

    Parameters

    Returns IsoFS

Properties

_disableSync?: boolean

Whether the sync cache should be disabled. Only affects async things.

data: Uint8Array

Methods

  • Parameters

    • path: string
    • flag: string
    • mode: number

    Returns Promise<File>

  • Parameters

    • path: string
    • flag: string
    • mode: number

    Returns File

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns Promise<boolean>

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns boolean

  • Parameters

    • srcpath: string
    • dstpath: string

    Returns Promise<void>

  • Parameters

    • srcpath: string
    • dstpath: string

    Returns void

  • Get metadata about the current file system

    Returns FileSystemMetadata

  • Parameters

    • path: string
    • mode: number

    Returns Promise<void>

  • Parameters

    • path: string
    • mode: number

    Returns void

  • Opens the file at path with flag. The file must exist.

    Parameters

    • path: string

      The path to open.

    • flag: string

      The flag to use when opening the file.

    Returns Promise<File>

  • Opens the file at path with flag. The file must exist.

    Parameters

    • path: string

      The path to open.

    • flag: string

      The flag to use when opening the file.

    Returns NoSyncFile<IsoFS>

  • Parameters

    • path: string

    Returns Promise<string[]>

  • Parameters

    • path: string

    Returns string[]

  • Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<Stats>

  • Parameters

    • path: string

    Returns Stats

  • Parameters

    • path: string
    • data: Uint8Array
    • stats: Readonly<Stats>

    Returns Promise<void>

  • Parameters

    • path: string
    • data: Uint8Array
    • stats: Readonly<Stats>

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void