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

Optional excludePathPattern only from relative path #850

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

attiasas
Copy link
Contributor

@attiasas attiasas commented Oct 25, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Add an option to fspatterns.ListFiles that allows it to use exclude patterns on a trimmed relative path instead of the whole absolute path.
This change keeps the results at absolute path representation, as it did before the change

ListFiles(rootPath string, isRecursive, includeDirs, isSymlink bool, excludePathPattern string)

->

ListFiles(rootPath string, isRecursive, includeDirs, excludeWithRelativePath, isSymlink bool, excludePathPattern string)

@attiasas attiasas added the improvement Automatically generated release notes label Oct 25, 2023
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Oct 25, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 25, 2023
@attiasas attiasas changed the title Add option to excludePathPattern only from relative path Optional excludePathPattern only from relative path Nov 1, 2023
Copy link
Contributor

@eyalbe4 eyalbe4 left a comment

Choose a reason for hiding this comment

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

Looks good.
Let's just add a clear description to ths PR.

Copy link
Contributor

github-actions bot commented Nov 1, 2023


@attiasas attiasas merged commit 422f205 into jfrog:dev Nov 1, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants