Skip to content

Commit

Permalink
fix: globifyDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 3, 2021
1 parent 2d76bf3 commit 896ecfc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/path-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 896ecfc

Please sign in to comment.