Exclude .DS_STORE Files.
This commit is contained in:
@@ -42,7 +42,10 @@ async function StartWatcher(): Promise<boolean> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user