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

directory creation or deleting not reported on linux #10

Closed
franko opened this issue Jul 14, 2021 · 0 comments
Closed

directory creation or deleting not reported on linux #10

franko opened this issue Jul 14, 2021 · 0 comments

Comments

@franko
Copy link
Contributor

franko commented Jul 14, 2021

I am beginning to integrate dmon in our project lite-xl, a programming editor.

The library is amazing, thank you for publishing this work as open source, this is great.

I stumbled on a problem on linux (on windows it was okay). When watching recursively a directory and you create or remove a directory no notification is sent at all. For example:

  • watch /tmp (RECURSIVE flag on)
  • touch /tmp/test.txt => ok, get a notification
  • mkdir /tmp/foo => no notification
  • touch /tmp/foo/test.txt => no notification
  • rm /tmp/foo/test.txt => no notification
  • rmdir /tmp/foo => no notification

It can be verified with the "test" application included in the repository.

I am using the latest version of dmon as I am creating this issue.

The same scenario works perfectly on windows.

I didn't investigate but it looks like if the "recursive" option is not applied on linux.

Thank you in advance for any help.

septag added a commit that referenced this issue Jul 19, 2021
Linux dirs creation/deletion reporting which fixes #4 and #10
@septag septag closed this as completed Jul 19, 2021
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