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

When a file changes, folder changes and file changes will be detected, which will be executed twice #93

Open
echobool opened this issue Jan 2, 2020 · 3 comments

Comments

@echobool
Copy link

echobool commented Jan 2, 2020

When a file changes, folder changes and file changes will be detected, which will be executed twice. How can the configuration only take effect once?

9BBECC52-6B3E-420C-8541-966D5ABB1BDE

16B5169B-B957-4997-80FA-E5157FC4CA85

@Akumzy
Copy link

Akumzy commented Jan 2, 2020

I think it's working as it supposed to, you can use the snippet below to bypass that

if event.Op == watcher.Write && event.IsDir() {
    continue
}

@echobool
Copy link
Author

echobool commented Jan 2, 2020

@Akumzy Hello, I use it like this: $watcher -cmd = ". / watcher. Sh configure Web" - interval = "2000ms" - ignore = ". / vendor,. / node Ou modules,. / configure Web",How to use it on the command line?

@Akumzy
Copy link

Akumzy commented Jan 2, 2020

I am sorry but I don't know

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

2 participants