Is it possible to use the fs API to create a directory and all necessary subdirectories like the -p parameter does when using the mkdir command?
fs
-p
mkdir
You can either write your own version or use a module like mkdirp