Recursive File Listing by Type in Groovy
Recursive File Listing by Type in Groovy: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Groovy script that recursively lists all files matching a specific file extension ( .txt files) within a directory structure. The script must include files located in the root folder as well…
The task
You need to write a Groovy script that recursively lists all files matching a specific file extension (`.txt` files) within a directory structure. The script must include files located in the root folder as well as all subdirectories.
Part of PrimeIntellect/Terminal-Lego-15k.