HF RL Explorer

Task: Zip a File Without Including Directory Structure

Task: Zip a File Without Including Directory Structure: a task in Terminal-Lego-15k (Harbor dataset). When using Python's zipfile module to create a zip archive, the full directory path of the file is often preserved inside the archive. Your task is to write a Python script that creates a zip…

The task

When using Python's `zipfile` module to create a zip archive, the full directory path of the file is often preserved inside the archive. Your task is to write a Python script that creates a zip archive of a file **without** including the directory structure — so that when the zip is extracted, only the file itself…

Part of PrimeIntellect/Terminal-Lego-15k.