Skip to main content

Mojo package

tempfile

Manage temporary files and directories: create, locate, and cleanup.

The tempfile package provides utilities for creating and managing temporary files and directories. It handles platform-specific temporary storage locations and ensures proper cleanup of temporary resources. Temporary files are useful for intermediate data, testing, and operations that need scratch space without polluting permanent storage.

Use this package when you need scratch space for intermediate computations, temporary storage during testing, or any operation requiring files that shouldn't persist after program execution.

Modules

Was this page helpful?