Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fathym_common/src/common/path/createIfNotExists.ts>createIfNotExists

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Latest
function createIfNotExists
import { createIfNotExists } from "https://deno.land/x/fathym_common@v0.2.160/src/common/path/createIfNotExists.ts";

Creates a directory if it doesn't exist (async). If the directory already exists, no action is taken.

Examples

From path import

import { createIfNotExists } from '@fathym/common/path';

await createIfNotExists('C:\\temp\\my-directory');

From common import

import { createIfNotExists } from '@fathym/common';

await createIfNotExists('C:\\temp\\my-directory');

Parameters

path: string

The path to create the directory

Returns

Promise<void>