[−][src]Function cap_tempfile::tempdir
pub unsafe fn tempdir() -> Result<TempDir>
Create a new temporary directory.
This corresponds to tempfile::tempdir
.
Safety
This function is unsafe because it makes use of ambient authority to access temporary directories, which doesn't uphold the invariant of the rest of the API. It is otherwise safe to use.