mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
refactor: simplify directory list for agent configuration
This commit is contained in:
@@ -421,10 +421,7 @@ class MoviePilotTool(BaseTool, metaclass=ABCMeta):
|
|||||||
:return: 普通用户允许读写的本地目录列表
|
:return: 普通用户允许读写的本地目录列表
|
||||||
"""
|
"""
|
||||||
roots = [
|
roots = [
|
||||||
settings.CONFIG_PATH,
|
settings.CONFIG_PATH / "agent"
|
||||||
settings.LOG_PATH,
|
|
||||||
settings.CONFIG_PATH / "agent" / "memory",
|
|
||||||
settings.CONFIG_PATH / "agent" / "activity",
|
|
||||||
]
|
]
|
||||||
resolved_roots = []
|
resolved_roots = []
|
||||||
for root in roots:
|
for root in roots:
|
||||||
|
|||||||
Reference in New Issue
Block a user