-
Notifications
You must be signed in to change notification settings - Fork 377
Frequently Asked Questions
kjw1 edited this page Oct 10, 2012
·
8 revisions
- I always get
WD=-1
or the messageNo space left on device (ENOSPC)
whenever I try to add a new watch- You must have reached your quota of watches, type
sysctl -n fs.inotify.max_user_watches
to read your current limit and typesysctl -n -w fs.inotify.max_user_watches=16384
to modify (increase) it.
- You must have reached your quota of watches, type
- Pyinotify seems to miss some events
- Refer to this issue.
- How can I use Pyinotify on MacOSX or on Windows ?
- You can't, Pyinotify exclusively works under Linux
- I've watched a directory with argument
rec=True
but after that if a new directory is created inside, it is not automatically watched- You'll most likely want to use an additional argument
auto_add=True
when calling the methodadd_watch()
- You also must watch for
IN_CREATE
events, or new directories won't be watched.
- You'll most likely want to use an additional argument