Skip to content

Conversation

@Corentin-pro
Copy link
Contributor

@Corentin-pro Corentin-pro commented Nov 13, 2024

Added 2 tests for the new follow_symlink options.

The tests correctly fail if follow_symlink is set to False.

The code coverage slightly increases, this only adds the line 185 of src/watchdog/observers/inotify_c.py corresponding to

if follow_symlink:
    event_mask &= ~InotifyConstants.IN_DONT_FOLLOW

PS : a minor code style was automatically fixed in src/watchdog/observers/fsevents.py.

@BoboTiG BoboTiG merged commit 9df81ab into gorakhargosh:master Nov 13, 2024
21 checks passed
@BoboTiG
Copy link
Collaborator

BoboTiG commented Nov 13, 2024

Thanks a lot @Corentin-pro 🥂

TobiasRzepka pushed a commit to TobiasRzepka/watchdog that referenced this pull request Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants