ensure_dirs: Move some useful functions into utils.
authorRené Nussbaumer <rn@google.com>
Fri, 21 Oct 2011 11:26:44 +0000 (13:26 +0200)
committerRené Nussbaumer <rn@google.com>
Wed, 26 Oct 2011 08:42:18 +0000 (10:42 +0200)
commitb81b3c9637a091c49e1ae8540a99ae3082d86d5c
treee271ad30cde9cc5b3cd7af96b5cb4f78cfc59fa4
parentaf5af644b585d0c4cefd768eb4b251a972ffbef9
ensure_dirs: Move some useful functions into utils.

With this change we can easily reuse this functionality where it makes
sense on other parts of Ganeti.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/tools/ensure_dirs.py
lib/utils/io.py
test/ganeti.tools.ensure_dirs_unittest.py
test/ganeti.utils.io_unittest.py