mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-12-18 08:10:17 +00:00
a003a873b2
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.
21 lines
680 B
Python
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)
|
|
|
|
|
|
|