Posts by Cauã Matheus • 16 points
1 post
-
0
votes2
answers28
viewsA: Rename files to include a prefix
You can do it this way: const testFolder = './teste/'; const fs = require('fs'); const files = fs.readdirSync(testFolder); const prefix = 'prefix' files.forEach((file) => {…