From 2ec9356acab949b6aebd70e90da7d11740d3ad8e Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 22 Jul 2025 15:52:52 +0200 Subject: [PATCH] [Scripts] Prepare for cleanup --- scripts/util/auto-renamer/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/util/auto-renamer/index.js b/scripts/util/auto-renamer/index.js index e51f6f0..4cd7444 100644 --- a/scripts/util/auto-renamer/index.js +++ b/scripts/util/auto-renamer/index.js @@ -28,10 +28,11 @@ const config = { * Recursively find all files with extension in a directory * @param {string} dir The directory to search. Either absolute or relative path * @param {string} extension The file extension to look for + * @param {boolean} cleanup If helper files (like .DS_STORE and Windows helpers should be auto-deleted) * @param {string[]} ignoreList A list of filenames or directories to ignore * @returns {{ files: string, directories: string }} returns a list of html files with their full path */ -const treeWalker = (dir, extension, ignoreList) => { +const treeWalker = (dir, extension, cleanup, ignoreList) => { const ls = fs.readdirSync(dir); const fileList = []; const dirList = [];