Daily Python Projects

Daily Python Projects

Share this post

Daily Python Projects
Daily Python Projects
Rename all Files in Directory

Rename all Files in Directory

Level: Real-World

Mar 25, 2024
∙ Paid
6

Share this post

Daily Python Projects
Daily Python Projects
Rename all Files in Directory
1
Share

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

This post is for paid subscribers

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

Share