File Enumerator

列舉指定資料夾中的檔案並輸出成CSV

FOLDER

指定的資料夾,點擊 PICK 按鈕指定或使用 %FILENAME% 變數。

input 輸入陣列

在 input 陣列中的每個元素代表一個指定資料夾內檔案的路徑。

// 印出指定資料夾中每個檔案的路徑
input.forEach((filepath) => console.log(filepath))

output 輸出陣列

在 output 陣列中的每個檔案路徑將被用來產生CSV格式檔案。

// 將指定資料夾內的所有TXT檔建立一個CSV表
input.forEach((filepath) => {
  if (filepath.endsWith('txt')) output.push(filepath)
})

Last updated