Creates a new directory at the specified path, similar to mkdir -p.
Creates all necessary parent directories if they don't exist.
Note: For temporary directories, use mkTemp with { isDirectory: true } instead,
which provides automatic unique naming and integrates with temporary file management.
Parameters
dirPath: string
The absolute path where the directory will be created.
Returns AsyncVoidIOResult
A promise that resolves to an AsyncVoidIOResult indicating success or failure.
Creates a new directory at the specified path, similar to
mkdir -p. Creates all necessary parent directories if they don't exist.Note: For temporary directories, use mkTemp with
{ isDirectory: true }instead, which provides automatic unique naming and integrates with temporary file management.