-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified add_watch() to handle repeated calls on the same path. When
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 [email protected]).
- Loading branch information
Showing
2 changed files
with
50 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters