Copyright © 2011-2020 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
cleanup/0 | Delete all tempfiles not modified in the last day. |
is_tempfile/1 | Check if the file is a temporary filename. |
monitored_attach/1 | Add a process to the tempfile monitor. |
monitored_detach/1 | Remove a process from the tempfile monitor. |
monitored_new/0 | Like new/0 but also return yhe Pid of the monitoring process. |
monitored_new/1 | Like new/1 but also return yhe Pid of the monitoring process. |
new/0 | Return a new unique filename, start a monitoring process to clean it up after use. |
new/1 | Return a new unique filename, start a monitoring process to clean it up after use. |
tempfile/0 | return a unique temporary filename located in the TMP directory. |
tempfile/1 | return a unique temporary filename with the given extension. |
temppath/0 | Returns the path where to store temporary files. |
cleanup() -> ok
Delete all tempfiles not modified in the last day.
is_tempfile(Filename::file:filename_all()) -> boolean()
Check if the file is a temporary filename.
monitored_attach(MonitorPid::pid()) -> ok
Add a process to the tempfile monitor. The tempfile is deleted after all attached processes stopped or are detached.
monitored_detach(MonitorPid::pid()) -> ok
Remove a process from the tempfile monitor. The tempfile is deleted after all attached processes stopped or are detached.
monitored_new() -> {ok, {pid(), file:filename_all()}}
Like new/0 but also return yhe Pid of the monitoring process.
monitored_new(Extension::string() | binary()) -> {ok, {pid(), file:filename_all()}}
Like new/1 but also return yhe Pid of the monitoring process.
new() -> file:filename_all()
Return a new unique filename, start a monitoring process to clean it up after use. The file must be created and written within 10 seconds, or it will be deleted.
new(Extension::string() | binary()) -> file:filename_all()
Return a new unique filename, start a monitoring process to clean it up after use. The file must be created and written within 10 seconds, or it will be deleted.
tempfile() -> file:filename_all()
return a unique temporary filename located in the TMP directory.
tempfile(Extension::string() | binary()) -> file:filename_all()
return a unique temporary filename with the given extension.
temppath() -> file:filename_all()
Returns the path where to store temporary files.
Generated by EDoc