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:
Taylor Wilsdon
2025-04-14 20:46:53 -04:00
parent 455993c7e1
commit 07be65fcf7
2 changed files with 127 additions and 65 deletions

View File

@@ -0,0 +1,7 @@
import os
import pathlib
# Constants
ALLOWED_DIRECTORIES = [
str(pathlib.Path(os.path.expanduser("~/")).resolve())
] # 👈 Replace with your paths