Move helper class from watcher to utils.io
authorMichael Hanselmann <hansmi@google.com>
Thu, 5 Jan 2012 20:22:45 +0000 (21:22 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 6 Jan 2012 11:34:48 +0000 (12:34 +0100)
commit2635bb04740bc5b90a5f955ba29c7569b9d55b45
treec1740c1f17b9e2e02bfb4f6d5a7e0aeaa0bd7c78
parent601dfcbbe0698966fee937c17050da4594e04d3b
Move helper class from watcher to utils.io

“FileStatHelper” can be used together with “ReadFile” to a file's status
while it's opened. This avoids certain race conditions.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils/io.py
lib/watcher/__init__.py