Skip to main content
Module

x/mkdir_recursive/mod.ts>ensureDirExists

TS utility to recursively create a directory if it does not exist
Latest
function ensureDirExists
import { ensureDirExists } from "https://deno.land/x/mkdir_recursive@v0.1.0/mod.ts";

Utility for recursively creating a given directory. Given any valid URL it will create the leaf directory but not the trailing file. Does not perform any destructive actions on the fs. Will not create files, only directories

Parameters

url: URL
  • a valid url to an existing or non existing file or dir