withTempDir


Description:

public static bool withTempDir (TempFunc func)

Creates a temporary directory, passes it to the callback, and removes it.

Parameters:

func

callback invoked with the temporary directory path.

Returns:

true on success.