tempFile
Crea un archivo temporal y devuelve su ruta. El archivo existe y está vacío cuando la función retorna, y no se elimina automáticamente.
Firma
tempFile(): Result<string, FsError>Ejemplo
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
}