You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After setting up a recursive watch on a directory, doing a move directory dispatches a Modify(Name(Any)) and does not include a path for the directory's original path.
I thought there would be enough context to react to the from path and to path for an operation like moving a directory.
What happened
Using this watch, I would never know that anotherdir was originally subdir, and the app would have to stat every previously tracked file to determine whether they were moved.
The text was updated successfully, but these errors were encountered:
It seems like the debouncer squashes those into one event. If the watcher is for a single file and it's moved to a different path and then back to the original path, both Modify Name Anys will have the the watcher is watching with the backend.
If I do multiple mv during the debounce duration, then the path just gets repeated for the watch path and not the path that it was moved to and back from:
System details
rustc --version
: 1.80Example usage:
https://github.com/eighty4/l3/blob/dev-mode/src/dev.rs#L107
What you did (as detailed as you can)
After setting up a recursive watch on a directory, doing a move directory dispatches a
Modify(Name(Any))
and does not include a path for the directory's original path.What you expected
I thought there would be enough context to react to the from path and to path for an operation like moving a directory.
What happened
Using this watch, I would never know that
anotherdir
was originallysubdir
, and the app would have to stat every previously tracked file to determine whether they were moved.The text was updated successfully, but these errors were encountered: