Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
function makeTempDir
import { makeTempDir } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

Creates a new temporary directory in the default directory for temporary files, unless dir is specified. Other optional options include prefixing and suffixing the directory name with prefix and suffix respectively.

It is the caller's responsibility to remove the directory when no longer needed.

See https://deno.land/api@v1.40.3?unstable=true&s=Deno.makeTempDir

Returns

Promise<string>

The full path to the newly created directory.