[Scripts] Prepare for cleanup

This commit is contained in:
2025-07-22 15:52:52 +02:00
parent 3c19159c23
commit 2ec9356aca

View File

@@ -28,10 +28,11 @@ const config = {
* Recursively find all files with extension in a directory * Recursively find all files with extension in a directory
* @param {string} dir The directory to search. Either absolute or relative path * @param {string} dir The directory to search. Either absolute or relative path
* @param {string} extension The file extension to look for * @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 * @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 * @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 ls = fs.readdirSync(dir);
const fileList = []; const fileList = [];
const dirList = []; const dirList = [];