Rename all Files in Directory
Level: Real-World
Project Brief
Your task for this project is to batch-rename the files of a directory.
Project Instructions
Create an empty directory manually.
Download and place these files in that directory.
Create an empty Python script outside of that directory.
Write a program in that script that renames all the files of the directory.
The new names should contain the current date (e.g., rename from a.txt to a-2024-3-24.txt)
Environment Setup Instructions
Keep reading with a 7-day free trial
Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.


