shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
ensureDir
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… (async)
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 { ensureDir } from '@blackbyte/sugar/fs';
ensureDir('my/cool/dir').then(() => {
// do something...
});Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space