adding folder structure
Browse files- Directory creator.py +31 -0
Directory creator.py
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
# Define the base directory where you want to create the project structure
|
4 |
+
base_dir = r"C:\Users\agshi\Desktop\Omdena\Canada Policy\TorontoCanadaChapter_CanPolicyInsight"
|
5 |
+
|
6 |
+
# List of folders to be created
|
7 |
+
folders = [
|
8 |
+
"task0_learning_and_research",
|
9 |
+
"task1_data_collection",
|
10 |
+
"task2_eda_preprocessing",
|
11 |
+
"task3_model_building",
|
12 |
+
"task4_prompt_engg",
|
13 |
+
"task5_model_evaluation",
|
14 |
+
"task6_model_deployment",
|
15 |
+
"task7_final_presentation"
|
16 |
+
]
|
17 |
+
|
18 |
+
# Function to create the directory structure
|
19 |
+
def create_folder_structure(base_dir, folders):
|
20 |
+
if not os.path.exists(base_dir):
|
21 |
+
os.makedirs(base_dir)
|
22 |
+
|
23 |
+
for folder in folders:
|
24 |
+
path = os.path.join(base_dir, folder)
|
25 |
+
os.makedirs(path, exist_ok=True)
|
26 |
+
print(f"Created: {path}")
|
27 |
+
|
28 |
+
# Create the folder structure
|
29 |
+
create_folder_structure(base_dir, folders)
|
30 |
+
|
31 |
+
print("Folder structure created successfully!")
|