跳到主要內容
AI 武林
文章進階中文

Day 07 - 開眼!看見整個專案

來源 高見龍

讀原文(在新分頁開啟原站)連到 高見龍

摘要

介紹了兩個工具: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

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。讀原文(在新分頁開啟原站)