diff --git a/src/main/watcher.js b/src/main/watcher.js index 6765ddd4..478f99b5 100644 --- a/src/main/watcher.js +++ b/src/main/watcher.js @@ -109,7 +109,7 @@ class Watcher { } // rename syscall on Linux (chokidar#591) - if (isLinux && event === 'rename') { + if (isLinux && type === 'file' && event === 'rename') { const { watchedPath } = details // Use the same watcher and re-watch the file. watcher.unwatch(watchedPath)