dirwatch icon indicating copy to clipboard operation
dirwatch copied to clipboard

Moving directories causes wrong paths in File objects

Open jacobemcken opened this issue 4 years ago • 1 comments

I've reproduced the problem on Linux with the following directory structure (mkdir -p A/{B,C}):

+---A
    +---B
    \---C

Now watch dir A and run the following commands:

cd A
mkdir B/X
mv B/X/ C/
touch C/X/hello

Expected result: File object in create event should use the path .../A/C/X/hello

Actual result: File object in create event uses the path .../A/B/X/hello (Notice the B instead of a C).

jacobemcken avatar Jul 14 '21 14:07 jacobemcken

I found the lib Beholder didn't have the bug: https://github.com/nextjournal/beholder

jacobemcken avatar Dec 29 '21 11:12 jacobemcken