Add a generic write file function
authorIustin Pop <iustin@google.com>
Fri, 12 Oct 2007 13:02:15 +0000 (13:02 +0000)
committerIustin Pop <iustin@google.com>
Fri, 12 Oct 2007 13:02:15 +0000 (13:02 +0000)
commit087b34fe1c67f0f50b60b15675ae2de527a3265b
tree160efbfbfef6827e94ce09ce3493890a4350bc8d
parent71eca7c3955e096fc85f8e75a959358d56f0ab5a
Add a generic write file function

Currently there are a few version of "write a file safely" in the code.
This patch adds a generic function that should be able to replace all
the other versions.

The "take attributes from the target file" option, while useful, is not
implemented by this patch.

Reviewed-by: imsnah,ultrotter
lib/utils.py