Agent Zero AI framework
fix: create watch directory if it doesn't exist instead of raising FileNotFoundError
frdelf249aa15dd57
diff --git a/helpers/watchdog.py b/helpers/watchdog.pyindex ce93bd8ee..abdb79035 100644--- a/helpers/watchdog.py+++ b/helpers/watchdog.py@@ -256,7 +256,7 @@ class _WatchRegistry:def _normalize_root(root: str) -> str:normalized = os.path.abspath(os.path.normpath(root))if not os.path.exists(normalized):- raise FileNotFoundError(normalized)+ os.makedirs(normalized, exist_ok=True)if not os.path.isdir(normalized):raise NotADirectoryError(normalized)return normalized