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 = [];