openapi-servers/servers/filesystem/config.py

7 lines
153 B
Python

import os
import pathlib
# Constants
ALLOWED_DIRECTORIES = [
str(pathlib.Path(os.path.expanduser("~/")).resolve())
] # 👈 Replace with your paths