From 3034cbf61d9fa7b18d32c44b37178bd72532eb00 Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:01:50 -0500 Subject: [PATCH] Delete domain-fix.js --- domain-fix.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 domain-fix.js diff --git a/domain-fix.js b/domain-fix.js deleted file mode 100644 index 4ae88779..00000000 --- a/domain-fix.js +++ /dev/null @@ -1,29 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const directoryPath = path.join(__dirname, "domains"); - -(async () => { - try { - // Read the files in the 'domains' directory - const files = await fs.promises.readdir(directoryPath); - - let renamedCount = 0; - - for (const file of files) { - const oldPath = path.join(directoryPath, file); - const newPath = path.join(directoryPath, file.toLowerCase()); - - // Only rename if the file name is not already in lowercase - if (oldPath !== newPath) { - await fs.promises.rename(oldPath, newPath); - console.log(`Renamed: ${file} -> ${file.toLowerCase()}`); - renamedCount++; - } - } - - console.log(`Finished! Renamed ${renamedCount} out of ${files.length} files.`); - } catch (err) { - console.error("Error:", err); - } -})(); \ No newline at end of file