Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use filepathx.Glob instead of filepath.Glob to support ** which matches one or more dirs #273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalapiotr
Copy link

@kalapiotr kalapiotr commented Apr 18, 2023

Pull Request

Related Github Issues

Description

filepath.Glob does not support zero or more directory glob pattern

filepath.Glob("src/**/dev") will only find:
src/a/dev

using filepathx.Glob("src/**/dev") will find:
src/a/dev
src/a/b/c/dev
src/a/b/c/d/e/dev

etc

@kalapiotr kalapiotr force-pushed the pkala/supportMultipleDirsGlob branch 2 times, most recently from b8ceff6 to 57ae890 Compare April 18, 2023 19:37
@kalapiotr kalapiotr changed the title Use filepathx to support ** Use filepathx.Glob instead of filepath.Glob to support ** which matches one or more dirs Apr 18, 2023
@kalapiotr kalapiotr force-pushed the pkala/supportMultipleDirsGlob branch from 57ae890 to 950d5ca Compare April 18, 2023 19:39
@kalapiotr kalapiotr force-pushed the pkala/supportMultipleDirsGlob branch from 950d5ca to ae6ba54 Compare April 19, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant