mise API - v0.0.0
    Preparing search index...

    Class EtcVfsProvider

    VFS provider for /etc — maps ChRIS API resources to Unix-style config files.

    Implements

    Index
    prefix: string = '/etc'

    The path prefix this provider matches (e.g. '/net/pacs', '/bin'); empty for a fallback.

    • Copies files or folders from/to paths under this provider.

      Parameters

      • _src: string

        The absolute source path.

      • _dest: string

        The absolute destination path.

      • _options: CpOptions

        Copy flags like recursive.

      Returns Promise<VfsOutcome>

      Done, or why not.

    • Lists contents of /etc — the four virtual config files.

      Parameters

      • _path: string
      • Optional_options: { reverse?: boolean; sort?: "name" | "size" | "date" | "owner" }

      Returns Promise<Result<VFSItem[]>>

      VFSItems for each /etc file.

    • Reads a file whole, as text.

      Parameters

      • path: string

        The absolute path of the file.

      Returns Promise<VfsOutcome<string>>

      Its content, or why not (ENOENT, EISDIR, ...).