Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashes when encountering inaccessible directories (mode 0700) #111

Open
crackwitz opened this issue Jul 20, 2024 · 0 comments
Open

crashes when encountering inaccessible directories (mode 0700) #111

crackwitz opened this issue Jul 20, 2024 · 0 comments

Comments

@crackwitz
Copy link

As the title says.

Had to catch issues in two places to at least make it tolerate inaccessible directories.

  • __load_trees: catch a PermissionError from os.listdir
  • add_watch: check with os.access before inotify_add_watch

And that's just that one issue with permissions. There is more. If I had the time, I'd do my own library. This here just doesn't stand up to real-world usage. There are deeper issues here that require me to just wrap it in a loop and sleep if failed construct.

Just posting this to let others know. In contrast to other inotify wrappers for Python, this one isn't "done" (no need to further develop). It's got bugs, and it's abandoned.

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

No branches or pull requests

1 participant