跳至主要內容

芒果凍布丁2026/4/18小於 1 分鐘

copy

複製檔案。

語法
copy(sourceDir: string, targetDir: string, pattern: string): void
範例
// 這將複製 old/ 資料夾下所有 .txt 檔案到 new/ 資料夾
FilesJS.copy('old/', 'new/', '*.txt');
最近更新:
貢獻者: EvanHsieh0415