From 9b90b780effd1023cdf31c5bf9824b7eaf2439da Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 22 May 2025 10:28:03 -0700 Subject: [PATCH] Exclude .DS_STORE Files. --- src/main/watcher/watcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/watcher/watcher.ts b/src/main/watcher/watcher.ts index c2691e4..3477f27 100644 --- a/src/main/watcher/watcher.ts +++ b/src/main/watcher/watcher.ts @@ -42,7 +42,10 @@ async function StartWatcher(): Promise { watcher = chokidar.watch(filePaths, { ignored: (filepath, stats) => { const p = path.parse(filepath); - return !stats?.isFile() && p.ext !== "" && p.ext.toUpperCase() !== ".ENV"; //Only watch for .ENV files. + return ( + (!stats?.isFile() && p.ext !== "" && p.ext.toUpperCase() !== ".ENV") || + p.name?.toUpperCase() === ".DS_STORE" + ); //Only watch for .ENV files. }, usePolling: pollingSettings.enabled || false, interval: pollingSettings.interval || 30000,