Trebejo.Compress.SevenZ (Trebejo v2.0.0)

Copy Markdown View Source

7-Zip archive operations — create and extract.

Summary

Functions

Creates a 7z archive from source paths.

Extracts a 7z archive.

Functions

create(output, files, opts \\ [])

@spec create(binary(), [binary()], keyword()) :: {:ok, binary()} | {:error, binary()}

Creates a 7z archive from source paths.

⚠️ Security: The password is passed via -p on the command line and is visible in the process list (ps aux).

extract(file, opts \\ [])

@spec extract(
  binary(),
  keyword()
) :: {:ok, binary()} | {:error, binary()}

Extracts a 7z archive.

⚠️ Security: The password is passed via -p on the command line and is visible in the process list (ps aux).