File size: 471 Bytes
3430157
 
941db60
 
 
3430157
941db60
 
 
 
 
 
3430157
941db60
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os

# Define the paths for the directories
db_dir = 'db'
data_dir = 'data'

# Check if the directories already exist
if not os.path.exists(db_dir):
    os.makedirs(db_dir)
    print(f"Directory '{db_dir}' created successfully.")
else:
    print(f"Directory '{db_dir}' already exists.")

if not os.path.exists(data_dir):
    os.makedirs(data_dir)
    print(f"Directory '{data_dir}' created successfully.")
else:
    print(f"Directory '{data_dir}' already exists.")