Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch does not work for glob pattern '<dir>/**' if '<dir>' does not exist on fs #745

Closed
eGavr opened this issue Jul 14, 2018 · 1 comment
Labels

Comments

@eGavr
Copy link

eGavr commented Jul 14, 2018

Describe the bug

Files are not being watched for glob <dir>/** if <dir> does not exist.

Versions (please complete the following information):

  • Chokidar version [2.0.4]
  • Node version [8.6.0]
  • OS version: [Ubuntu 16.04]

To Reproduce

// index.js
const chokidar = require('chokidar');
const watcher = chokidar.watch(['dir/**']);

watcher.on('add', path => console.log(path));

Run this code and create file.ext in dir:

mkdir dir && touch dir/file.ext

You will see nothing in console.

@paulmillr
Copy link
Owner

Duplicate of latter-created #872

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants