method

close

v1_9_1_378 - Show latest stable - Class: Tempfile
close(unlink_now=false)
public

Closes the file. If the optional flag is true, unlinks the file after closing.

If you don’t explicitly unlink the temporary file, the removal will be delayed until the object is finalized.