TempFile

Struct representing a temporary file. Returned by tempFile.

struct TempFile (
File
Path
) {}

Members

Variables

file
File file;

The opened file stream. If AutoDelete.yes is specified, when this is closed, the file is deleted.

path
Path path;

Path to the file. This is not guaranteed to exist if AutoDelete.yes is specified. For example, on POSIX, the file is deleted as soon as it is created such that, when the last file descriptor to it is closed, the file is deleted. If AutoDelete.no is specified, this path is guaranteed to exist.

Meta