chokidar icon indicating copy to clipboard operation
chokidar copied to clipboard

Watching directory with "." in the name

Open chenluu opened this issue 5 years ago • 1 comments

When watching a directory that has a "." in the name eg. "my.folder".

File Events are not triggered. However, if I rename the folder to "my_folder"

Versions:

  • Chokidar version3.4
  • Node version 12.18.2
  • OS version: Windows 10

To Reproduce: Attempt watching a folder with a "." in the name.

const dir = "C:\Users\user\Desktop\my.folder\";
const chokidar = require("chokidar");
watcher = chokidar.watch(dir, {
      persistent: true,
      ignoreInitial: true,
      disableGlobbing: true
  });
watcher.on('add', async function(path) {

          console.log('Added -> ' + path)
      });

chenluu avatar Jul 14 '20 07:07 chenluu

This isn't a problem in filespy, an alternative to chokidar.

aleclarson avatar Mar 16 '21 19:03 aleclarson