emcrisostomo / fswatch

A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
4.96k stars 327 forks source link

Trailing slash for directories #302

Open jdspugh opened 1 year ago

jdspugh commented 1 year ago

inotifywait will distinguish between files and directories modified by having a trailing slash if it's a directory. Can we have the same behaviour in fswatch?

I need it for some code that behaves differently depending on if a file or directory is changed.

jdspugh commented 1 year ago

I see we can detect directories using the "-x" option. But it would be more convenient and efficient with the trailing slash.