讀原文(在新分頁開啟原站)連到 高見龍
摘要
介紹了兩個工具:list_files 與 glob。list_files 用於列出目錄內容,透過 safe_path() 與 is_ignored() 過濾符號連結與敏感檔案。glob 則用於指定搜尋特定型別檔案,兩者皆需解析路徑並處理安全限制。
This article introduces two tools: list_files and glob. list_files lists directory contents, filtering symlinks and sensitive files via safe_path() and is_ignored(). glob searches for specific file types, supporting recursion and pruning. Both require path resolution and safety checks.
重點
- list_files 列出目錄,過濾符號連結與敏感檔案。
- glob 搜尋特定型別檔案,支援遞迴與剪枝。
- 兩者皆需解析路徑並處理安全限制。
提到的工具與公司
- Path
- is_relative_to
- safe_path
- IGNORE
- is_ignored
適合誰看
程式開發者、AI Agent 使用者。
摘要依據
- 依據
- 文章全文
為什麼排在這裡
- 人氣
- 0.50
- 新鮮
- 0.81
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- Day 06 - 第一個工具 read_file文章 ・ 高見龍
- Day 08 - 在專案裡搜尋文章 ・ 高見龍
- Filesystem | AI Coding Dictionary文章 ・ AI Hero(Matt Pocock)
- The Hidden Security Risks of AI Coding AgentsPodcast ・ The AI Native Dev ・ 41 分鐘
- EP402 - AI時代小白Vibe Coder必學的 GIT 指南|AI 把專案改壞了,你回得去昨天嗎? 如何讓多Agent一起做事?Podcast ・ AI懶人報 ・ 18 分鐘(在新分頁開啟原站)
- Tool | AI Coding Dictionary文章 ・ AI Hero(Matt Pocock)
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。讀原文(在新分頁開啟原站)
