Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 840 Bytes

File metadata and controls

44 lines (29 loc) · 840 Bytes

Path 资源 - 路径信息

Path 资源提供路径信息查询功能。

📋 方法列表

  1. get - 获取路径信息

📖 详细文档

1. 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']}")

💡 使用建议

  1. 路径查询 - 使用 get() 获取各种路径信息

🔗 相关资源