目錄擴充工具

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

成員

展開

list DirectoryExpander.expand(file)

如果指定的 File 是目錄,則會以遞迴方式傳回目錄下方的 File 清單。否則,系統會傳回只包含指定 File 本身的清單。

參數

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