tempfile

Utilities for working with temporary files in Koto.

temp_file

|| -> File

Creates and returns a temporary file.

This is a wrapper for NamedTempFile from the tempfile crate, please refer to the documentation for more information.

Example

f = temp_file.tempfile()
f.path()
# -> /path/to/a/temporary/file