ZenFS
    Preparing search index...

    Class IndexFSAbstract Internal

    A file system that uses an Index for metadata.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _mountPoint?: string

    The last place this file system was mounted

    _uuid: `${string}-${string}-${string}-${string}-${string}` = ...

    The UUID of the file system.

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

    FileSystemAttributes

    index: Index = ...
    label?: string
    name: string

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

    type: number

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

    Accessors

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

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

    Methods

    • Parameters

      • path: string
      • isUnlink: boolean

      Returns void

    • Reads into a buffer

      Parameters

      • path: string
      • buffer: Uint8Array

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

      • start: number

        The offset into the file to start reading from

      • end: number

        The position in the file to stop reading

      Returns Promise<void>

    • Reads into a buffer

      Parameters

      • path: string
      • buffer: Uint8Array

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

      • start: number

        The offset into the file to start reading from

      • end: number

        The position in the file to stop reading

      Returns void

    • Writes a buffer to a file

      Parameters

      • path: string
      • buffer: Uint8Array

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

      • offset: number

        The offset in the file to start writing

      Returns Promise<void>

    • Writes a buffer to a file

      Parameters

      • path: string
      • buffer: Uint8Array

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

      • offset: number

        The offset in the file to start writing

      Returns void