fswatch icon indicating copy to clipboard operation
fswatch copied to clipboard

Correlation of RENAME operation does not supported in C-Style API in libfswatch

Open KendrickChou opened this issue 9 months ago • 0 comments

Hi there, Thanks a lot for your efforts in developing this wonderful project!

Currently, I'm using the C-style libfswatch to do some filesystem monitoring stuff in MacOS. I find out the RENAME operation is annoying because I cannot distinguish the old_path and new_path of the same RENAME event.

In this issue https://github.com/emcrisostomo/fswatch/issues/278, I've noticed you have added the inode/cookies field in this commit https://github.com/emcrisostomo/fswatch/commit/d322aa4e49598aa7c7ca19c6feb41183e81135a4 to correlate the two RENAME events in MacOS/Linux. However, it seems that it is only in cpp API and has not been supported in the C-style API.

Is there any good way to use this feature in C-style events as well? I can make a PR if necessary.

Thanks in advance.

KendrickChou avatar Mar 20 '25 14:03 KendrickChou