Implement a command-line tool safe extract that extracts a given archive (.tar, .tar.gz, .tar.bz2, .tar.xz…
Implement a command-line tool safe extract that extracts a given archive (.tar, .tar.gz, .tar.bz2, .tar.xz…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Positional argument 1: path to archive file - Positional argument 2: path to target…
The task
**Input contract:** - Positional argument 1: path to archive file - Positional argument 2: path to target extraction directory (must exist beforehand) - Optional flags: - `--max-size N` where N is max total uncompressed bytes (default 104857600 = 100MB) - `--max-files N` where N is max number of files to extract…
Part of ai-and/termgrade-environments.