diff --git a/lib/path-utils.js b/lib/path-utils.js index de1d6a5..857dc0d 100644 --- a/lib/path-utils.js +++ b/lib/path-utils.js @@ -20,6 +20,14 @@ export function posixifyPathNormalized(givenPath) { return posixifyPath(givenPath).replace(/[/\\]$/, "") } +/** + * Globifies a directory + * @param {string} givenDirectory The given directory to be globified + */ +export function globifyDirectory(givenDirectory) { + return `${posixifyPathNormalized(givenDirectory)}/**` +} + /** * Parse and globy the `.gitingore` file that exists in a directry * @param {string} gitIgnoreDirectory The given directory that has the `.gitignore` file