howeyc/cl-fsnotify

Question about intermediate states

Opened this issue · 1 comments

Hi,

I was considering cases like upload of large files, that might take some time.
Do you know how cl-fsevent reacts to such cases? Does it trigger the event as soon as the file is created or only when the file is closed.
The underlying fsevent theoretically allows to specify a delay for receiving the events, but this feature does not seem to be available in cl-fsevent. Is there any reason for that?

Thank you for your nice work anyway.

You should get the event as soon as the file is created. And get WRITE events as the file is modified.

Also, this does not use the fsevents, it uses kqueue. It uses kqueue because it's on FreeBSD.

There is probably some extra functionality the OS has but is not used. This is because when I wrote this i wanted the events to "look the same" regardless of what OS I was running.