withTempFile


Description:

public static bool withTempFile (TempFunc func)

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

Parameters:

func

callback invoked with the temporary file path.

Returns:

true on success.