set_tmpdir


Description:

[ Version ( since = "1.19.58" ) ]
public bool set_tmpdir (string? tmpdir) throws Error

set the temporary directory

Set the directory used by the handle to store temporary files.

The environment variables LIBGUESTFS_TMPDIR and TMPDIR control the default value: If LIBGUESTFS_TMPDIR is set, then that is the default. Else if TMPDIR is set, then that is the default. Else /tmp is the default.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error