diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-11-10 09:38:09 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-11-10 09:38:09 +0000 |
commit | 8693967a859c5e4d47adee696682e19b5b63781c (patch) | |
tree | 524eb8f9c618069456113ca89a9e34d17b721133 /fs/osfs | |
parent | d25b0144b30cf23edd2fa73eccecec040c148187 (diff) | |
download | pyfilesystem-8693967a859c5e4d47adee696682e19b5b63781c.tar.gz |
OSFS.watch_inotify: add convert_os_errors wrapper
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@528 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/osfs')
-rw-r--r-- | fs/osfs/watch_inotify.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/osfs/watch_inotify.py b/fs/osfs/watch_inotify.py index 3d7d0f4..00bf380 100644 --- a/fs/osfs/watch_inotify.py +++ b/fs/osfs/watch_inotify.py @@ -48,6 +48,7 @@ class OSFSWatchMixin(WatchableFSMixin): finally: self.__watch_lock.release() + @convert_os_errors def add_watcher(self,callback,path="/",events=None,recursive=True): super_add_watcher = super(OSFSWatchMixin,self).add_watcher w = super_add_watcher(callback,path,events,recursive) @@ -79,6 +80,7 @@ class OSFSWatchMixin(WatchableFSMixin): self.__watch_lock.release() return w + @convert_os_errors def del_watcher(self,watcher_or_callback): if isinstance(watcher_or_callback,Watcher): watchers = [watcher_or_callback] |