批量复制和重命名文件

时间:2018-10-25 07:50:15

标签: file copy rename

如何(以递归方式)复制具有特定扩展名的文件并直接重命名该副本。

例如,我有以下文件:

dirA/my.spec.ts dirB/other.spec.ts

批量复制后,我希望拥有:

dirA/my.spec.ts dirA/my.test.ts dirB/other.spec.ts dirB/other.test.ts

我想保留原始文件,但使用其他名称进行复制(除原始文件外)。

0 个答案:

没有答案