Esc

extract

procedureextensionsince 0.36.1Source
  • macOS: extract works on macOS
  • Linux: extract works on Linux
  • Windows: extract works on Windows
  • Wasm: extract works on Wasm

Extracts regular files/directories under an existing destination, rejecting all archive links. Existing files are never overwritten. On error, earlier outputs remain; discard the destination. Example: error := extract(*archive, "unpack", Archive_Limits.{});

Signature

extract :: (
    a: *Archive,
    dest_dir: string,
    limits := Archive_Limits.{}
) -> Archive_Error