export function ensurePathExists()

in vscode-extension/src/utils.ts [13:23]


export function ensurePathExists(targetPath: string): void {
    // Ensure that the path exists
    try {
        fs.mkdirSync(targetPath);
    } catch (e) {
        // If the exception isn't to indicate that the folder exists already, rethrow it.
        if (e.code !== "EEXIST") {
            throw e;
        }
    }
}