ApplesauceOS
Read Markdown ↗Download .md

makeDir

Create a directory.

js
makeDir(path)

Arguments

ArgumentTypeMeaning
pathstringTarget path.

Returns

null on success; error string on failure.

Example

js
const error = makeDir(__dirname + "/output");
if (error !== null) throw new Error(error);

All JavaScript APIs · Automation playbook