Skip to content

Commit a003a87

Browse files
authoredAug 21, 2022
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.
1 parent 5e9d1f4 commit a003a87

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
 
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'''
2+
THIS CODE CREATES FOLDERS FOR EACH FY OF OUR COMPANY, WHERE WE COULD
3+
FIND 12 OTHER FOLDERS NAMED AFTER EACH MONTH OF THE YEAR.
4+
'''
5+
6+
#Import modules and libraries we'll use
7+
from pathlib import Path
8+
9+
#Create the folders where we'll store our automated calendar
10+
months =['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
11+
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
12+
13+
for i,month in enumerate(months):
14+
Path(f'Year1/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
15+
Path(f'Year2/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
16+
Path(f'Year3/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
17+
Path(f'Year4/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
18+
19+
20+

‎automated_calendar/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg-resources==0.0.0

0 commit comments

Comments
 (0)
Please sign in to comment.