mirror of
https://github.com/open-webui/openapi-servers
synced 2025-06-26 18:17:04 +00:00
Refactor allowed directories to config.py; implement two-step delete_path with token-based confirmation and pending state; update related models, validation, and error handling
This commit is contained in:
7
servers/filesystem/config.py
Normal file
7
servers/filesystem/config.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
# Constants
|
||||
ALLOWED_DIRECTORIES = [
|
||||
str(pathlib.Path(os.path.expanduser("~/")).resolve())
|
||||
] # 👈 Replace with your paths
|
||||
Reference in New Issue
Block a user