HF RL Explorer

Batch Renaming of Files in a Directory

Batch Renaming of Files in a Directory: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that performs batch renaming of files in a directory. The script should rename all .doc files by adding a prefix "new" and wrapping the original filename in parentheses.

The task

Write a Python script that performs batch renaming of files in a directory. The script should rename all `.doc` files by adding a prefix "new" and wrapping the original filename in parentheses.

Part of PrimeIntellect/Terminal-Lego-15k.