Closed arunkumar413 closed 1 year ago
Here is the code sandbox
I guess the components isn't yet created, you must either
nest the callbacks
use fs.mkdirSync but use a backend that supports sync
@arunkumar413 @neimanpinchas
The optional options argument can be an integer specifying mode (permission and sticky bits), or an object with a mode property and a recursive property indicating whether parent directories should be created. Calling fs.mkdir() when path is a directory that exists results in an error only when recursive is false.
When using fs.mkdir
for nested directories you should set recursive
to true
in the options.