septag / dmon

Single header C99 portable library for monitoring filesystem changes. (Windows/Linux/MacOS)
BSD 2-Clause "Simplified" License
235 stars 19 forks source link

directory creation or deleting not reported on linux #10

Closed franko closed 3 years ago

franko commented 3 years ago

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:

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.