Skip to main content
The Deno 2 Release Candidate is here
Learn more
function EmptyDir
Re-export
import { EmptyDir } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted.

See https://deno.land/std@0.63.0/fs/mod.ts?s=emptyDir

Parameters

unnamed 0: { dir: string; }

Returns

The empty string.