Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

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

Examples

From path import

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

createIfNotExistsSync('C:\\temp\\my-directory');

From common import

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

createIfNotExistsSync('C:\\temp\\my-directory');

Parameters

path: string

The path to create the directory