Skip to content

Recursive directory monitoring -> inconsistent behavior #3

Description

@jagreenwood

When working with this library on macOS and Linux, I'm seeing a difference in behavior between the two regarding recursive monitoring of directories.

Given the scenarios:

  1. watch a directory, add a file to directory
  2. watch a directory with a subdirectory, add a file to subdirectory
  3. watch a directory, add a subdirectory, add a file
1 2 3
macOS
Linux

The reason for this difference is because the inotify C library does not automatically support recursion.

Inotify monitoring of directories is not recursive: to monitor subdirectories
under a directory, additional watches must be created. This can take a significant 
amount time for large directory trees.

I'm not sure which is behaving as intended for the scope of this project, but would expect the behavior to be the same.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions