"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.globRemove = exports.globRead = void 0;
const glob_1 = __importDefault(require("glob"));
const rimraf_1 = __importDefault(require("rimraf"));
/**
 * Retourne les chemins (absolus par défaut)
 *
 * @param pattern
 * @param options
 *
 * @returns
 */
function globRead(pattern, options) {
    return (0, glob_1.default)(pattern, options);
}
exports.globRead = globRead;
/**
 * Suppression par pattern
 *
 * @param pattern
 * @param options
 *
 * @returns
 */
function globRemove(pattern, options) {
    return (0, rimraf_1.default)(pattern, {
        glob: options || {
            dot: true
        }
    });
}
exports.globRemove = globRemove;
