-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
handle more flexible patterns #134
base: master
Are you sure you want to change the base?
Conversation
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.
@miguelius I reviewed and I have some questions. Please respond and I will think more about this.
List<string> GetFeatureFilePaths(); | ||
FeatureFile GetByFilePath(string filePath); | ||
List<string> GetFeatureFilePaths(); | ||
List<string> FindFilesByPattern(string pattern); |
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.
This does not belong here conceptually. This is a feature file repository not a file path repository. What are you trying to do with it?
@@ -34,9 +34,10 @@ public List<FeatureFile> Discover(Type featureClassType) | |||
|
|||
if (fileClassInfo.IsPattern) { | |||
_featureFileRepository | |||
.GetFeatureFilePaths() | |||
.FindAll(f => fileClassInfo.MatchesFilePathPattern(f)) |
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.
Isn't this what you are trying to fix? MatchesFilePathPattern - this returns false but must return true. Am I missing something?
What happens if the path contains multiple asterisk symbols such as in the folder names? e.g., |
Good point! I think that no Directory API method can handle that pattern.
I'll try it!
|
Tried it with dotnet-script and I get:
It looks like it doesn't support wildcards but in the file name. Basically like dir command. |
Okay, thanks for trying it! Is that based on my master branch or your fork? |
No description provided.