ensureFileSync

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

Ensure that the passed file exists. If not, will be created… (sync)

Params

  1. filePath*-String

    The file to ensure that it exists…

Example

import { ensureFileSync } from '@blackbyte/sugar/fs';
ensureFileSync('my/cool/file.jpg');

Todo

  • testsnormal