shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
ensureDirSync
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
Ensure that the passed directory exists. If not, will be created recursively… (sync)
Params
- dir*-String
The directory to ensure that it exists…
Return
- -Promise
A promise that will be resolved once the directory has been created if needed…
Example
import { ensureDirSync } from '@blackbyte/sugar/fs';
ensureDirSync('my/cool/dir');Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space