Spaces:
Runtime error
Runtime error
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.") | |