-
Notifications
You must be signed in to change notification settings - Fork 225
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
CreateKind | RemoveKind | ModifyKind seem to always be Any
most of the time?
#261
Comments
Yes, the relevant code is: Lines 364 to 386 in b07225e
Definitely we should coordinate it but it needs the information whether it's a dir, file, or unknown. |
In that case, should I close it under the reason that it's working as intended? |
No, I'd like to take this as an improvement. I haven't found any flags from |
Any improvement on this? |
I'm not sure how worth the overhead is for that. If I understand this right we'd have to store a hashmap for all file descriptors which tells us whether its a folder or a file / perform a path lookup (IO). Currently our windows backend does not require us to keep track of anything like that, in contrast to linux where we have to work through all files to watch. Thus I'd at least make it somehow optional. (We can do so via the new Config flags, which allows the debouncer-mini to just set this to "no") |
System details
1.46.0
5.0.0-pre.3
What you did (as detailed as you can)
I have a basic file watcher function which watch for any event from some
path
recursively:What you expected
The log message will print a helpful message of what exactly happened with the file/folder under that path.
What happened
The log message will almost always print an
Any
variant ofCreateKind
,RemoveKind
, andModifyKind
. Only when I try renaming some file that it manage to print theModifyKind::Name
variant.Wouldn't this be quite useless for a more complex situation where you need to know what exactly happened to the file/folder?
The text was updated successfully, but these errors were encountered: