Skip to content
Français

WorkspaceFileEntry

import type { WorkspaceFileEntry } from "@elie-laloum/outpost/workspaces";
  • pathRequired
    string
    Validated relative path preserving its prefix; traversal and control paths are refused.
  • kindRequired
    "file" | "link" | "directory"
    Validated regular file, relative internal symbolic link or directory; special files are refused.
  • modeRequired
    number
    Portable permission bits retained for regular files and directories.
  • sizeRequired
    number
    Size in bytes of the validated file content or link target.
  • sha256Required
    string
    SHA-256 content digest for integrity and concurrency checks, without publisher authentication.
  • targetOptional
    string | undefined
    Relative symbolic link target that must remain inside the declared selection.
export interface WorkspaceFileEntry {
  readonly path: string;
  readonly kind: "file" | "link" | "directory";
  readonly mode: number;
  readonly size: number;
  readonly sha256: string;
  readonly target?: string;
}