tempFile
Creates a new temporary file and returns its path. The file exists (empty) on return and is not automatically cleaned up.
Signature
tempFile(): Result<string, FsError>Example
tyrus
import { FsError, tempFile } from "tyrus:fs";
match (tempFile()) {
Ok(path) => { print(path); } // /tmp/tyrus_abc123.tmp
Err(error) => { printError(error.code); } // ERR_FS_TEMP_FILE_FAILED
}