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 when path contains parentheses #27

Open
ghuser opened this issue Mar 6, 2017 · 2 comments
Open

Watch does not work when path contains parentheses #27

ghuser opened this issue Mar 6, 2017 · 2 comments
Labels

Comments

@ghuser
Copy link

ghuser commented Mar 6, 2017

While the following works:

cpx.watch("/tmp/dir1/file1.xml", "/tmp/dir2", {initialCopy:false}, function(err){});

This doesn't:

cpx.watch("/tmp/dir1(copy)/file1.xml", "/tmp/dir2", {initialCopy:false}, function(err){});

Tested on Windows10 / Ubuntu.
I even tried to escape like this: \( \) but it didn't work.

FYI: I've tested glob module separately (using default options) and it doesn't have any problems with parentheses in the above path.

@mysticatea mysticatea added the bug label Mar 6, 2017
@mysticatea
Copy link
Owner

Thank you for this issue.

I confirmed it.
If there are parentheses, cpx.copy works, but cpx.watch does not work.

@ivanjonas
Copy link

This bug is also present when using braces, as in styles/**/*.{css,scss}.

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

3 participants