handle more flexible patterns - #134
Conversation
ttutisani
left a comment
There was a problem hiding this comment.
@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.
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?
| if (fileClassInfo.IsPattern) { | ||
| _featureFileRepository | ||
| .GetFeatureFilePaths() | ||
| .FindAll(f => fileClassInfo.MatchesFilePathPattern(f)) |
There was a problem hiding this comment.
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.