目錄擴充工具

回報問題 查看來源 夜間 · 8.3 · 8.2 · 8.1 · 8.0 · 7.6

在執行階段,展開由 ctx.actions.declare_directory 建立的目錄。這有助於在 map_each 中展開目錄。

成員

展開

list DirectoryExpander.expand(file)

如果指定的 File 是目錄,這會傳回目錄下方遞迴的 File 清單。否則,這會傳回只包含指定 File 的清單。

參數

參數 說明
file 檔案; 必要
要展開的目錄或檔案。