function directoryExists(resolvedPath) {
	try {
		return fs.statSync(resolvedPath).isDirectory();
	} catch (error) {
		if (error && (error.code === "ENOENT" || error.code === "ENOTDIR")) {
			return false;
		}
		throw error;
	}
}
Checks whether a directory exists at the given location
@param {string} resolvedPath A path from the CWD
@throws {Error} As thrown by `fs.statSync` or `fs.isDirectory`.
@returns {boolean} `true` if a directory exists