function ensureDirectoryExists(dirPath) {
	try {
		fs.statSync(dirPath);
	} catch {
		fs.mkdirSync(dirPath);
	}
}
Creates a directory if it doesn't already exist.
@param {string} dirPath The path to the directory that should exist.
@returns {void}