Creates the directory at the provided path, as well as any necessary parent directories.
path
Path of the directory to create.
The file mode to set for the directories. Default: 0o777.
0o777
The number of directories created. If the directory already exists, returns 0.
0
const count = Switch.mkdirSync('sdmc:/foo/bar/baz');console.log(`Created ${count} directories`);// Created 3 directories Copy
const count = Switch.mkdirSync('sdmc:/foo/bar/baz');console.log(`Created ${count} directories`);// Created 3 directories
Creates the directory at the provided
path
, as well as any necessary parent directories.