"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.rmFolder = void 0;
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const rmFolder = (fpath) => {
    try {
        fs_1.default.rmdirSync(fpath, { recursive: true });
    }
    catch (e) {
        if (e.code !== 'ENOENT')
            console.error('rm dir error, %s', fpath);
    }
};
exports.rmFolder = rmFolder;
