Daily Python Projects

Daily Python Projects

Rename all Files in Directory

Level: Real-World

Ardit Sulce's avatar
Ardit Sulce
Mar 25, 2024
∙ Paid

Project Brief

Your task for this project is to batch-rename the files of a directory.

Project Instructions

  1. Create an empty directory manually.

  2. Download and place these files in that directory.

  3. Create an empty Python script outside of that directory.

  4. Write a program in that script that renames all the files of the directory.

  5. 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.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture