set_cachedir


Description:

[ Version ( since = "1.19.58" ) ]
public bool set_cachedir (string? cachedir) throws Error

set the appliance cache directory

Set the directory used by the handle to store the appliance cache, when using a supermin appliance. The appliance is cached and shared between all handles which have the same effective user ID.

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

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error