Skip to main content
Module

x/aloedb/lib/files.ts>ensureFileSync

Light, Embeddable, NoSQL database for Deno 🦕
Go to Latest
function ensureFileSync
import { ensureFileSync } from "https://deno.land/x/aloedb@0.1.0/lib/files.ts";

Ensures that the file exists synchronously.

Parameters

path: string

Path to the file.

optional
data: string = [UNSUPPORTED]

Data to write to if file not exists.

Returns

void

Is file created.