Skip to content

Commit

Permalink
feat: remove deprecated option (#18)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove deprecated MatchDirectories

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Feb 27, 2021
1 parent 67591a1 commit 0e04fc3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions glob.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ func MatchDirectoryAsFile(opts *globOptions) {
opts.matchDirectoriesDirectly = true
}

// MatchDirectories determines weather a matching directory should
// result in only the folder name itself being returned (true) or
// in all files inside that folder being returned (false).
//
// Deprecated: use MatchDirectoryIncludesContents and MatchDirectoryAsFile instead.
func MatchDirectories(v bool) OptFunc {
return func(opts *globOptions) {
opts.matchDirectoriesDirectly = v
}
}

// QuoteMeta returns a string that quotes all glob pattern meta characters
// inside the argument text; For example, QuoteMeta(`{foo*}`) returns `\{foo\*\}`.
func QuoteMeta(pattern string) string {
Expand Down

0 comments on commit 0e04fc3

Please sign in to comment.