io.file.temp

Members

Enums

AutoDelete
enum AutoDelete

Used with tempFile to choose if a temporary file should be deleted automatically when it is closed.

Functions

GetTempFileNameW
UINT GetTempFileNameW(LPCWSTR lpPathName, LPCWSTR lpPrefixString, UINT uUnique, LPWSTR lpTempFileName)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
GetTempPathW
DWORD GetTempPathW(DWORD nBufferLength, LPWSTR lpBuffer)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
tempDir
T tempDir()

Returns the path to a directory for temporary files.

tempFile
TempFile!(F, string) tempFile(AutoDelete autoDelete, string dir)

Creates a temporary file. The file is automatically deleted when it is no longer referenced. The temporary file is always opened with both read and write access.

tempFile
TempFile!(F, T) tempFile(AutoDelete autoDelete, T dir)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TempFile
struct TempFile(File, Path)

Struct representing a temporary file. Returned by tempFile.

Meta

Authors

Jason White