[Go to site: main page, start]

Share feedback
Answers are generated based on the documentation.
{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBottom - 200) { container.scrollTop = itemTop - (container.clientHeight / 2 - item.offsetHeight / 2); } } })" class="bg-background-toc dark:bg-background-toc fixed top-0 z-40 hidden h-screen w-full flex-none overflow-x-hidden overflow-y-auto md:sticky md:top-16 md:z-auto md:block md:h-[calc(100vh-64px)] md:w-[320px]" :class="{ 'hidden': ! $store.showSidebar }">

Experimental

Schema

FileInfo

Type: object

FileInfo is file metadata.
isDir

Type: boolean

is_dir reports whether the path is a directory and stays populated on every backend and every caller. type is the richer authority, and type == directory iff is_dir.
All schema constraints and annotations
{
  "description": "is_dir reports whether the path is a directory and stays populated on\nevery backend and every caller. type is the richer authority, and\ntype == directory iff is_dir.",
  "type": "boolean"
}
linkTarget

Type: string

link_target is the literal readlink() text when type is symlink, since that is the only case where nothing else lets the caller learn what the link names; empty otherwise.
All schema constraints and annotations
{
  "description": "link_target is the literal readlink() text when type is symlink,\nsince that is the only case where nothing else lets the caller learn what\nthe link names; empty otherwise.",
  "type": "string"
}
mode

Type: integer

mode is the stored Unix permission bits (0777), without type or special bits.
All schema constraints and annotations
{
  "description": "mode is the stored Unix permission bits (0777), without type or special bits.",
  "type": "integer"
}
path

Type: string

path is the sandbox path.
All schema constraints and annotations
{
  "description": "path is the sandbox path.",
  "type": "string"
}
size

Type: integer | string

size is the file size in bytes.
All schema constraints and annotations
{
  "description": "size is the file size in bytes.",
  "format": "int64",
  "type": [
    "integer",
    "string"
  ]
}
type

Schema: FileType

type classifies the object, and Stat and List populate it for every caller. Stat and List resolve an in-jail symlink and report the resolved target's type; a link that cannot be resolved in-jail (dangling, looping, or escaping) reports symlink for itself rather than disclosing an out-of-jail target.
All schema constraints and annotations
{
  "$ref": "#/components/schemas/FileType",
  "description": "type classifies the object, and Stat and List populate it for every\ncaller. Stat and List resolve an in-jail symlink and report\nthe resolved target's type; a link that cannot be resolved in-jail\n(dangling, looping, or escaping) reports symlink for itself\nrather than disclosing an out-of-jail target."
}
All schema constraints and annotations
{
  "description": "FileInfo is file metadata.",
  "properties": {
    "isDir": {
      "description": "is_dir reports whether the path is a directory and stays populated on\nevery backend and every caller. type is the richer authority, and\ntype == directory iff is_dir.",
      "type": "boolean"
    },
    "linkTarget": {
      "description": "link_target is the literal readlink() text when type is symlink,\nsince that is the only case where nothing else lets the caller learn what\nthe link names; empty otherwise.",
      "type": "string"
    },
    "mode": {
      "description": "mode is the stored Unix permission bits (0777), without type or special bits.",
      "type": "integer"
    },
    "path": {
      "description": "path is the sandbox path.",
      "type": "string"
    },
    "size": {
      "description": "size is the file size in bytes.",
      "format": "int64",
      "type": [
        "integer",
        "string"
      ]
    },
    "type": {
      "$ref": "#/components/schemas/FileType",
      "description": "type classifies the object, and Stat and List populate it for every\ncaller. Stat and List resolve an in-jail symlink and report\nthe resolved target's type; a link that cannot be resolved in-jail\n(dangling, looping, or escaping) reports symlink for itself\nrather than disclosing an out-of-jail target."
    }
  },
  "title": "FileInfo",
  "type": "object"
}