Skip to main content
Deno 2 is finally 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.
Go to Latest
function createIfNotExists
import { createIfNotExists } from "https://deno.land/x/fathym_common@v0.2.147-integration/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>