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

Enhance --files option #533

Merged
merged 2 commits into from
Feb 12, 2020
Merged

Conversation

JoeRobich
Copy link
Member

  • Allow folder paths to be specified for inclusion via the --files option
  • Add --include alias for --files option

@JoeRobich JoeRobich changed the title Enhanced files option Enhance --files option Feb 12, 2020
@JoeRobich JoeRobich requested a review from jmarolf February 12, 2020 04:49
filePaths = filesToInclude.Where(
filePath => filePath.EndsWith(fileExtension) && File.Exists(filePath)).ToArray();
filePaths = filePaths.Where(filePath =>
pathsToInclude.Any(path => filePath.StartsWith(path, StringComparison.OrdinalIgnoreCase))).ToArray();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a .NET api to compare file paths that works if the file system is case-sensitive (like most linux file systems are?). Not a blocker jsut curious

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I can find. Nothing off Path at least. Could roll our own getting FileInfo and using its FullPath which I would hope to be cased properly.

Copy link
Contributor

@jmarolf jmarolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@JoeRobich JoeRobich merged commit d8378a4 into dotnet:master Feb 12, 2020
@JoeRobich JoeRobich mentioned this pull request Feb 13, 2020
@JoeRobich JoeRobich deleted the enhanced-files-option branch March 5, 2021 21:01
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.

2 participants