summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-06-24 18:25:09 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-06-24 18:25:09 +0100
commit0574eab8bc7d8e72db862ec36815835938a5fdf1 (patch)
tree6588315e33f95de9fbb150f862064471a975050e /python/guestfs.py
parent8228eec99045ae720d8ef35851aa8c278f6b4e5c (diff)
downloadlibguestfs-0574eab8bc7d8e72db862ec36815835938a5fdf1.tar.gz
libguestfs-0574eab8bc7d8e72db862ec36815835938a5fdf1.tar.xz
libguestfs-0574eab8bc7d8e72db862ec36815835938a5fdf1.zip
Generated code for 'mkdtemp' command.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index 0bc041e6..fec12a71 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -1704,3 +1704,22 @@ class GuestFS:
"""
return libguestfsmod.scrub_freespace (self._o, dir)
+ def mkdtemp (self, template):
+ u"""This command creates a temporary directory. The
+ "template" parameter should be a full pathname for the
+ temporary directory with the six characters being
+ "XXXXXX".
+
+ For example: "/tmp/tmpXXXXXX" or "/Temp/tmpXXXXXX", the
+ second one being suitable for Windows.
+
+ The name of the temporary directory that was created is
+ returned.
+
+ The caller is responsible for deleting the temporary
+ directory and its contents after use.
+
+ See also: mkdtemp(3)
+ """
+ return libguestfsmod.mkdtemp (self._o, template)
+