node.js - File and folders create if not exist -
is there fs.create(path) if path not exist create it.
for example, fs.create('d:/test/a.txt') , create test folder , a.txt file if a.txt not exist.
i know how create file if not exist how folder's'? think simple problem. lib can that? or need parse path , create it?
the answer @thefourtheye, use fs-extra module's createfile
Comments
Post a Comment