Skip to content

when a watched directory or subdirectory is renamed, inotify still reports the old directory in next events. #109

@unravel-dev

Description

@unravel-dev

If i am watching for example

/home/test/dir1

which has some subdirectory

/home/test/dir1/nested1

then i rename nested1->nested2

then in nested2 i create a new file test.txt

i get an event reported in the old directory
/home/test/dir1/nested1/test.txt
instead of
/home/test/dir1/nested2/test.txt

Currently i am handling this from outside by recreating the whole watcher when a directory is renamed, but would be great if it is handled internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions