-
Notifications
You must be signed in to change notification settings - Fork 175
Implement glob support for enumerators #353
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
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.8 #353 +/- ##
==========================================
- Coverage 70.98% 70.96% -0.02%
==========================================
Files 288 289 +1
Lines 6545 6562 +17
==========================================
+ Hits 4646 4657 +11
- Misses 1522 1525 +3
- Partials 377 380 +3
|
5e6688d
to
33033f7
Compare
33033f7
to
0500da0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
22918a3
to
c2a8d2a
Compare
c2a8d2a
to
7bd3591
Compare
7bd3591
to
f25792e
Compare
user mwarkentin on discord had multiple files on the same s3 bucket were his statefile lays and listing take too much time. Progress bar is being stopped. |
To rebase on |
Support go glob syntax + ** syntaxe on file enumerator Support go glob syntax on s3 enumerator
f25792e
to
5141f1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too bad for the ** syntax on S3. Small typo in one sentence.
return nil, err | ||
} | ||
|
||
// filpath match does not compile so we try to match to be able to report the pattern error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filepath match .... so we use the match method to report the pattern error
3e9e07e
to
2136c8b
Compare
2136c8b
to
7838728
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I wonder if you could have use just doublestar.glob instead of testing double start presence in the file glob but it's a details.
info, err := os.Lstat(path) | ||
if err != nil { | ||
if isGlob := strings.Contains(path, "*"); !isGlob && err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't you use HasMeta?
845ca11
to
144ccd4
Compare
Description
Limited glob support.
Support go glob syntax + ** syntax on file enumerator
Support go glob syntax on s3 enumerator