HF RL Explorer

Create a safe archive extractor script /root/extractor.py that extracts a tar.gz archive into a target…

Create a safe archive extractor script /root/extractor.py that extracts a tar.gz archive into a target…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Given a tar.gz archive path and a target directory path as command-line arguments, extract all files from…

The task

**Goal**: Given a tar.gz archive path and a target directory path as command-line arguments, extract all files from the archive into the target directory, but ONLY if every file in the archive has a safe path (no absolute paths, no `..` components, no symlinks pointing outside the target, no duplicate entries that…

Part of ai-and/termgrade-environments.