Path 资源提供路径信息查询功能。
- get - 获取路径信息
获取路径信息。
检索当前工作目录和相关路径信息。
返回值:
Dict[str, str]- 路径信息字典,包含:home- 用户主目录state- 状态目录config- 配置目录worktree- 工作树目录directory- 当前目录
示例:
paths = client.path.get()
print(f"主目录: {paths['home']}")
print(f"配置目录: {paths['config']}")
print(f"当前目录: {paths['directory']}")- 路径查询 - 使用
get()获取各种路径信息
- Project 资源 - 项目管理
- File 资源 - 文件操作