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

Deno.watchFs recursive #6485

Closed
Bidek56 opened this issue Jun 25, 2020 · 4 comments
Closed

Deno.watchFs recursive #6485

Bidek56 opened this issue Jun 25, 2020 · 4 comments

Comments

@Bidek56
Copy link

Bidek56 commented Jun 25, 2020

Should this code generate events for sub directories? If not what does the recursive do? Thx

const watcher = Deno.watchFs(Deno.cwd(), { recursive: true});

for await (const event of watcher) {
  console.log(">>>> event", event);
  // { kind: "create", paths: [ "/foo.txt" ] }
}
@ry
Copy link
Member

ry commented Jun 25, 2020

Yes that's what the recursive option does.

@ry ry closed this as completed Jun 25, 2020
@Bidek56
Copy link
Author

Bidek56 commented Jun 25, 2020

I do not believe it works. Modifying any files in the sub-directory does not generate an event.

@Bidek56
Copy link
Author

Bidek56 commented Jun 25, 2020

@bartlomieju Do you see the recursive option working correctly? Thx

@Bidek56
Copy link
Author

Bidek56 commented Jun 26, 2020

This seems to be Ubuntu 20.04 on WSL2 issue only, it works on Windows and Linux. Thx

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