Skip to content
Français

snapshotWorkspaceFiles

import { snapshotWorkspaceFiles } from "@elie-laloum/outpost/workspaces";

Conserves a bounded verified generation through Transport with binary files, internal links, permissions and empty directories.

Complete example and detailed rules.

  • transporterRequired
    Transport
    Caller-owned Transport used for conservation; no implicit cloud SDK or credential loading.
  • rootRequired
    string
    Execution root inside the borrowed sandbox, distinct from its host control directory.
  • prefixRequired
    string
    Transport key prefix under which immutable archive generations are written.

Promise<TransportReference>

export declare function snapshotWorkspaceFiles(
  transporter: Transport,
  root: string,
  prefix: string,
): Promise<TransportReference>;