HF RL Explorer

Task: Get a Filtered List of Files in a Directory Using Python

Task: Get a Filtered List of Files in a Directory Using Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that retrieves a filtered list of files from a directory using a wildcard pattern, equivalent to running ls 145592 .jpg in the shell, but implemented purely in Python…

The task

Write a Python script that retrieves a filtered list of files from a directory using a wildcard pattern, equivalent to running `ls 145592*.jpg` in the shell, but implemented purely in Python without executing shell commands.

Part of PrimeIntellect/Terminal-Lego-15k.