Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename detection without timeout #43

Closed
benmccann opened this issue May 20, 2024 · 4 comments
Closed

rename detection without timeout #43

benmccann opened this issue May 20, 2024 · 4 comments

Comments

@benmccann
Copy link
Contributor

benmccann commented May 20, 2024

It seems the current implementation depends on a timeout. Is it possible to avoid this at least in some cases such as when the native watcher is used?

@benmccann
Copy link
Contributor Author

benmccann commented May 20, 2024

I think it's basically impossible. inotify just doesn't support it

I'm less clear on whether fanotify might support it, but the fanotify API looks quite similar to the inotify API, so I don't necessarily expect a different result there

@benmccann
Copy link
Contributor Author

Actually, I think you can do this using fanotify:

The event FAN_RENAME may contain two information records. One of type FAN_EVENT_INFO_TYPE_OLD_DFID_NAME identifying the old directory entry, and another of type FAN_EVENT_INFO_TYPE_NEW_DFID_NAME identifying the new directory entry.

@benmccann benmccann reopened this May 21, 2024
@benmccann
Copy link
Contributor Author

benmccann commented May 21, 2024

A couple issues with fanotify:

@fabiospampinato
Copy link
Owner

fabiospampinato commented Jun 30, 2024

Yeah I think this is impossible right now given that a goal of the project is to have zero native dependencies like that (unlike stuff like chokidar).

It would be ideal though, happy to reopen if it ever becomes possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants