help
help copied to clipboard
Why don't libuv emit actual rename/move file event
as i know, the kqueue / inotify / and so on all supports monitor file rename/move event。
and we can find these code in libuv, it seems libuv turn all events into UV_RENAME/UV_CHANGE
switch (file_info->Action) {
case FILE_ACTION_ADDED:
case FILE_ACTION_REMOVED:
case FILE_ACTION_RENAMED_OLD_NAME:
case FILE_ACTION_RENAMED_NEW_NAME:
handle->cb(handle, filename, UV_RENAME, 0);
break;
case FILE_ACTION_MODIFIED:
handle->cb(handle, filename, UV_CHANGE, 0);
break;
}
What is your specific suggestion here?
What is your specific suggestion here?
keep the move / rename event with two filepaths, instead of turning them into UV_RENAME with one filepath