Skip to main content
Module

x/fs_cli/dev_deps.ts>ensureFile

A deno tool to handle directories and files through script: delete directories or files, copy simple or recursive, etc. Inspired by rimraf and mkdirp
Latest
function ensureFile
import { ensureFile } from "https://deno.land/x/fs_cli@v1.0.0/dev_deps.ts";

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 NOTMODIFIED. Requires the --allow-read and --allow-write flag.

Parameters

filePath: string