Refactor isIgnored function to use IGNORED_NAMES
This commit is contained in:
5
main.js
5
main.js
@@ -1096,13 +1096,14 @@ function buildTrayMenu() {
|
|||||||
ipcMain.handle('set-skip-git-prompt', (_e,val) => store.set('skipGitPrompt', val));
|
ipcMain.handle('set-skip-git-prompt', (_e,val) => store.set('skipGitPrompt', val));
|
||||||
|
|
||||||
// Auto-Verzeichnisstruktur
|
// Auto-Verzeichnisstruktur
|
||||||
const IGNORED_NAMES = [
|
const IGNORED_NAMES = [
|
||||||
'.DS_Store', 'node_modules', '.git', 'dist', 'build',
|
'.DS_Store', 'node_modules', '.git', 'dist', 'build',
|
||||||
'.cache', 'out', '.venv', '.mypy_cache', '__pycache__', 'package-lock.json'
|
'.cache', 'out', '.venv', '.mypy_cache', '__pycache__', 'package-lock.json'
|
||||||
];
|
];
|
||||||
|
|
||||||
function isIgnored(name) {
|
function isIgnored(name) {
|
||||||
return IGNORED_NAMES.includes(name);
|
//return IGNORED_NAMES.includes(name);
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
function walkDir(base, rel = '.') {
|
function walkDir(base, rel = '.') {
|
||||||
|
|||||||
Reference in New Issue
Block a user