This script sorts CSV files from each month's subfolder into a new folder named NewEmployees2020Clean while preserving the original copies.
This Python script is designed to:
- Traverse through a directory structure containing subfolders for each month.
- Copy CSV files from each subfolder into a new folder.
- Rename the copied files based on the specified naming convention (
newjoiners_Month2020.csv).
- Clone or download the repository.
- Replace the
main_foldervariable with the path to your directory containing the subfolders of CSV files. - Run the Python script.
- Python 3.x
- os module
- shutil module