Module z_tempfile

Simple temporary file handling, deletes the file when the calling process stops or crashes.

Copyright © 2011 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Simple temporary file handling, deletes the file when the calling process stops or crashes.

Data Types

filename()

filename() = string()

Function Index

is_tempfile/1Check if the file is a temporary filename.
new/0Return a new unique filename, start a monitoring process to clean it up after use.
new/1Return a new unique filename, start a monitoring process to clean it up after use.
tempfile/0return a unique temporary filename.
tempfile/1return a unique temporary filename with a set extension.
temppath/0Returns the path where to store temporary files.

Function Details

is_tempfile/1

is_tempfile(Filename::filename()) -> boolean()

Check if the file is a temporary filename.

new/0

new() -> filename()

Return a new unique filename, start a monitoring process to clean it up after use.

new/1

new(Extension::string()) -> filename()

Return a new unique filename, start a monitoring process to clean it up after use.

tempfile/0

tempfile() -> filename()

return a unique temporary filename.

tempfile/1

tempfile(Extension::string()) -> filename()

return a unique temporary filename with a set extension.

temppath/0

temppath() -> filename()

Returns the path where to store temporary files.


Generated by EDoc