Skip to main content
Module

x/fs_cli/deps.ts>denoEmptyDir

A deno tool to handle directories and files through script: delete directories or files, copy simple or recursive, etc. Inspired by rimraf and mkdirp
Latest
function denoEmptyDir
import { denoEmptyDir } from "https://deno.land/x/fs_cli@v1.0.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. Requires the --allow-read and --allow-write flag.

Parameters

dir: string