summaryrefslogtreecommitdiff
path: root/python3
Commit message (Collapse)AuthorAgeFilesLines
* Don't check for existing watch when setting up watchesSebastien Martini2012-06-071-5/+0
| | | | | | | | | | This check had prohibitive cost and was useless to some extent because adding a watch for an already watched path will result in assigning the same watch descriptor therefore only updating it. There won't be any dangling watch descriptor left into the watch manager dictionary. Issue reported by Jan Knudsen https://github.com/Shne
* Fixed runtime warnings in inotify ctypes' wrapper.Sebastien Martini2012-04-141-0/+8
| | | | Contributed by bdkearns https://github.com/bdkearns
* Documented ExcludeFilter shortcomings.Sebastien Martini2012-03-201-0/+4
|
* auto_add=True automatically implies oring IN_CREATE with theSebastien Martini2012-03-111-2/+7
| | | | | provided mask value. Misbehavior reported by Maxime Augier https://github.com/maugier.
* Bumped version number, released Pyinotify 0.9.3.0.9.3Sebastien Martini2011-12-201-1/+1
|
* Added new command line option --command.Sebastien Martini2011-12-021-0/+10
| | | | | | This new command permits to run a shell command on each event. Idea and initial patch contributed by Domen Kožar @iElectric domen@dev.si.
* Improve comment.Sebastien Martini2011-12-021-3/+3
|
* Correctly handle IN_Q_OVERFLOW events.Sebastien Martini2011-12-021-4/+4
| | | | | | | This commit should fix a regression introduced with commit d334049eed6b1136a9d224a3ca17aa66fea5215a. Issue reported by Tomi Belan @TomiBelan.
* Fixed error message (reported by Jordan Pittier).Sebastien Martini2011-10-111-1/+1
|
* Ignore dangling IN_IGNORED events sent after watches are removed.Sebastien Martini2011-10-111-2/+3
|
* Bumped version number (0.9.2).0.9.2Sebastien Martini2011-04-191-1/+1
|
* Emit artificial IN_CREATE events on recursive files creations.Sebastien Martini2011-04-051-13/+19
| | | | | | | | | This commit should help mitigating long standing issue "Missing IN_CREATE events" https://github.com/seb-m/pyinotify/issues#issue/2 Note that symlinks are handled as files and that no similar treatment is applied to IN_MOVE_TO events, because even if moved files are new watched items, there aren't newly created per se by the filesystem.
* Use __slots__ in Watch class to reduce memory footprint (contributedSebastien Martini2011-03-221-1/+4
| | | | by Olivier Cortès).
* Few minors renaming.Sebastien Martini2011-02-081-7/+12
|
* Fix access to inotify's variables from ctypes.Sebastien Martini2011-02-071-23/+33
|
* Disable ctypes when inotify_syscalls is successfully imported.Sebastien Martini2011-02-061-0/+3
|
* Added C-coded inotify syscalls interface.Sebastien Martini2011-01-281-81/+186
| | | | | | | | | | | | | | - If compile_ext_mod is set to True in setup.py, this extension is explicitly compiled. - If compile_ext_mod is set to False in setup.py (default), this extension is compiled only if no inotify support has been found from ctypes. - Replaced exception type UnsupportedLibcVersionError by InotifyBindingNotFoundError. WatchManager.__init__() may raise this exception on error. - SysCtlINotify (class providing access to inotify /proc variables) is not instanciated (therefore not available) when the C extension is used. It is only available from ctypes.
* Removed useless code spotted by pyflakes.Sebastien Martini2011-01-221-16/+0
|
* Fixed select's error handling (contributed by zjes).Sebastien Martini2011-01-061-1/+1
|
* Released Pyinotify 0.9.1.0.9.1Sebastien Martini2010-10-171-3/+3
|
* Optionally no pid file is written (pid_file=False) when notifier.loopSebastien Martini2010-09-151-10/+18
| | | | with daemonize=True is called.
* Modified the umask's value set in forked processes, tightened all filesSebastien Martini2010-09-151-37/+25
| | | | | creations rights and removed the daemonize option used for killing processes (security issue reported by Adrian thiefmaster@gamesurge.net).
* Added new method WatchManager.close() to close inotify's fileSebastien Martini2010-09-091-0/+12
| | | | descriptor when needed (bug reported by jdw@research.att.com).
* Remove watch descriptor from WatchManager's dictionary when a watchSebastien Martini2010-09-091-0/+3
| | | | is successfully removed (bug reported by jdw@research.att.com).
* Reverted exception name of libc loading error, back toSebastien Martini2010-07-301-5/+5
| | | | UnsupportedLibcVersionError.
* Modified loading mechanism of the libc (following issues reportedSebastien Martini2010-07-271-8/+24
| | | | by przemyslaw.wrzos@calyptech.com).
* Modified logging formatter to output timestamps (idea submitted bySebastien Martini2010-07-271-1/+1
| | | | hv@tbz-pariv.de).
* Flush stdout stream immediately after events or stats are writtenSebastien Martini2010-07-271-2/+6
| | | | (idea submitted by hv@tbz-pariv.de).
* Added new option --raw-format (-f) to explicitly disable theSebastien Martini2010-07-271-72/+86
| | | | | enhanced output format when Pyinotify is used from command line (idea submitted by hv@tbz-pariv.de).
* Added new command line option --version (idea submitted bySebastien Martini2010-07-271-0/+5
| | | | hv@tbz-pariv.de).
* Check that loaded libc has needed inotify functions instead ofSebastien Martini2010-07-271-19/+8
| | | | | checking for glibc version number (reported by przemyslaw.wrzos@calyptech.com).
* Pyinotify 0.9.00.9.0Sebastien Martini2010-06-041-1/+1
|
* Improved new coalescing option, use native __hash__ from stringSebastien Martini2010-05-271-32/+18
| | | | objects.
* Added new option for coalescing events (disabled by default). See new exampleSebastien Martini2010-05-271-7/+61
| | | | coalesce.py.
* Reverts previous commit for the following reasons:Sebastien Martini2010-05-191-5/+0
| | | | | | | | | | | | | - Preserve backward compatibility; - Returning a dictionary with all the iterated directories for which ENOSPC was raised gives the information these directories existed and were iterated and something wrong happened, it is useful information; - It is definitively developer's responsibility to check a given subtree is not too deep or that max_user_watches is not large enough before calling add_watch(). This reverts commit be91bfbbe7a849952b2fe61a49205d66fb5c850c.
* add_watch() returns immediately on first encountered ENOSPC error evenSebastien Martini2010-05-191-0/+5
| | | | if quiet=True (idea submitted by Matthew Webber Matthew.Webber@diamond.ac.uk).
* Provide errno information from inotify's system calls when availableSebastien Martini2010-05-181-7/+12
| | | | (Python >=2.6) (reported by Matthew Webber Matthew.Webber@diamond.ac.uk).
* Fixed previous fix f7510650b8e9950247d14841967eb64d0b2d0294.Sebastien Martini2010-05-171-5/+7
|
* Modified add_watch() to handle repeated calls on the same path. WhenSebastien Martini2010-05-141-13/+25
| | | | | | | | | this method is called with an already watched path, it is ignored. When option rec=True is used, all the subtree is iterated and watches are only added on paths not already watched. That way existing watches are preserved while enabling new watches to be placed on new subdirectories. To update a watch use update_watch() instead. (reported by Matthew Webber Matthew.Webber@diamond.ac.uk).
* Fixed auto_add handling in method update_watch (contributed bySebastien Martini2010-05-131-1/+1
| | | | Matthew Webber Matthew.Webber@diamond.ac.uk).
* Fixed dictionary item deletion on iteration (submitted by knurxs@gmx.de).Sebastien Martini2010-04-041-2/+2
|
* Fixed IN_MOVE_SELF renames of overlapping directories namesSebastien Martini2010-03-011-3/+4
| | | | (contributed by Facundo Batista facundo@canonical.com).
* Callback function called inside Notifier.loop is now able to stopSebastien Martini2010-03-011-10/+17
| | | | the loop if it returns True.
* - Fixed documentation.Sebastien Martini2010-02-231-4/+3
| | | | - Fixed select error handling (reported by Michal gentoo@mgorny.alt.pl).
* Refinement of previous commit implemented with help of patch ofSebastien Martini2010-01-131-9/+7
| | | | Guillermo Gonzalez <guillermo.gonzalez@canonical.com>.
* Attempt to mitigate lookups on unexistant Watch objects triggeredSebastien Martini2010-01-131-0/+9
| | | | | in presently not well understood contexts. These faulty? events are currently skipped but should be dumped into debug traces.
* Pyinotify 0.8.90.8.9Sebastien Martini2010-01-041-1/+1
|
* Updated license to 'MIT License'.Sebastien Martini2010-01-041-18/+18
|
* - Removed custom glob functions, uses standard glob module directly.Sebastien Martini2010-01-031-85/+23
| | | | | | | | - Modified exclusion filter mechanism, patterns still can be loaded from files but the syntax has changed see exclude.lst for more details. This new method is safer since the external file is not executed anymore, it is only parsed looking for patterns loaded as strings.
* - Improved daemon.py exampleSebastien Martini2010-01-011-10/+21
| | | | | - By default assigns an instance of PrintAllEvents() to Notifier.default_proc_fun.