File Enumerator
列舉指定資料夾中的檔案並輸出成CSV
最后更新于
这有帮助吗?
列舉指定資料夾中的檔案並輸出成CSV
最后更新于
这有帮助吗?
这有帮助吗?
// 印出指定資料夾中每個檔案的路徑
input.forEach((filepath) => console.log(filepath))// 將指定資料夾內的所有TXT檔建立一個CSV表
input.forEach((filepath) => {
if (filepath.endsWith('txt')) output.push(filepath)
})