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

Incorrect copy on watch #17

Closed
zont opened this issue Jan 13, 2017 · 7 comments
Closed

Incorrect copy on watch #17

zont opened this issue Jan 13, 2017 · 7 comments

Comments

@zont
Copy link

zont commented Jan 13, 2017

Have folders:

src
     - config.json
     - index.html
out

Run:

sync-glob -w src/**/*.{html,json} out


DELETE out
COPY src\config.json to out\config.json
COPY src\index.html to out\index.html
WATCHING src/**/*.{html,json}

Try edit config.json and save:

COPY src\config.json to out\src\config.json

File writed to incorrect path

Should be the same is initial COPY:

COPY src\config.json to out\config.json
@AndyOGo
Copy link
Owner

AndyOGo commented Jan 16, 2017

@zont
Thank you for your report.
I will firstly work on #18, then I will make a test case for your issue.

@AndyOGo
Copy link
Owner

AndyOGo commented Feb 21, 2017

@zont
I finished automated testing and fixed some nifty bugs during this too and version 1.1.0 is out.

May I ask you to check if this issue is resolved for you?

Important: please make sure to wrap your globs within ' quotes, cause otherwise your CLI's shell will interpret these globs and expand them, instead of letting node-sync-glob evaluate them itself, like:

sync-glob -w 'src/**/*.{html,json}' out

As mentioned in the readme https://github.com/AndyOGo/node-sync-glob#note

@zont
Copy link
Author

zont commented Feb 24, 2017

Sorry, but now I use https://www.npmjs.com/package/copy-and-watch

@AndyOGo
Copy link
Owner

AndyOGo commented Feb 24, 2017

@zont alright, thanks for feedback though

@AndyOGo AndyOGo closed this as completed Feb 24, 2017
@david-hollifield
Copy link

FWIW, I'm having this same issue using v1.3.7 of sync-glob

@AndyOGo
Copy link
Owner

AndyOGo commented Aug 22, 2017

@david-hollifield
Thanks for your feedback.
May I ask you to provide platform and environment details.

If you are on windows, it has known bugs originating form chokidar.
Since NSFW is released I'm considering switching to it, see #39

@david-hollifield
Copy link

Yes, I'm on windows 10.

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

No branches or pull requests

3 participants