From da947eadcfa1367c2d634667068db813a87a6dd1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 24 Jun 2009 19:57:24 +0100 Subject: Clarify documentation for mkdtemp. --- python/guestfs.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/guestfs.py b/python/guestfs.py index fec12a71..23aef9c2 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1707,15 +1707,19 @@ class GuestFS: 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". + temporary directory name with the final six characters + being "XXXXXX". - For example: "/tmp/tmpXXXXXX" or "/Temp/tmpXXXXXX", the - second one being suitable for Windows. + For example: "/tmp/myprogXXXXXX" or + "/Temp/myprogXXXXXX", the second one being suitable for + Windows filesystems. The name of the temporary directory that was created is returned. + The temporary directory is created with mode 0700 and is + owned by root. + The caller is responsible for deleting the temporary directory and its contents after use. -- cgit