Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
203 B · 8 lines
TypeScript
123456789import type { PathLike } from 'node:fs';import fs from 'node:fs';
export function ensureDirSync(path: PathLike): void { if (!fs.existsSync(path)) { fs.mkdirSync(path, { recursive: true }); }}