12 lines
367 B
JavaScript
12 lines
367 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
for (let i = 4; i <= 71; i++) {
|
|
const oldDir = `REQ-${String(i).padStart(4, "0")}`;
|
|
const newDir = `REQ0${String(i).padStart(3, "0")}`;
|
|
const oldPath = path.join(__dirname, oldDir);
|
|
const newPath = path.join(__dirname, newDir);
|
|
if (fs.existsSync(oldPath)) {
|
|
fs.renameSync(oldPath, newPath);
|
|
}
|
|
}
|