Skip to main content
Module

x/dev_server/deps.ts>fs.ensureFileSync

Feel free to import TypeScript files in the script tag!
Latest
function fs.ensureFileSync
import { fs } from "https://deno.land/x/dev_server@v1.0.0-rc4/deps.ts";
const { ensureFileSync } = fs;

Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is NOT MODIFIED. Requires the --allow-read and --allow-write flag.

Parameters

filePath: string