mkdtemp


Description:

[ Version ( since = "1.0.54" ) ]
public string mkdtemp (string tmpl) throws Error

create a temporary directory

This command creates a temporary directory. The tmpl parameter should be a full pathname for the temporary directory name with the final six characters being "XXXXXX".

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.

See also: mkdtemp(3)

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error




2022 vala-language.org