Awesome-Python-Scripts/automated_calendar/automated_calendar.py
J.A. Hernández a003a873b2
automated_calendar
This script is an agenda for lazy people, I mean, for saving time 😂😂😂. Just run it and inside your selected folder you will find 12 other folders named after each month of the year, so you can archive your documents in a more organized way.
2022-08-21 17:04:00 -04:00

21 lines
680 B
Python

'''
THIS CODE CREATES FOLDERS FOR EACH FY OF OUR COMPANY, WHERE WE COULD
FIND 12 OTHER FOLDERS NAMED AFTER EACH MONTH OF THE YEAR.
'''
#Import modules and libraries we'll use
from pathlib import Path
#Create the folders where we'll store our automated calendar
months =['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
for i,month in enumerate(months):
Path(f'Year1/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
Path(f'Year2/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
Path(f'Year3/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
Path(f'Year4/{i+1}.{month}').mkdir(parents=True,exist_ok=True)