Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tempfile

Derived from Koto documentation (MIT, github.com/koto-lang/koto), maintained for koto-calc.

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()
print! f.path()
check! /path/to/a/temporary/file