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

Adding an overload of ReadFilesFromDirectory that takes in a filename… #1520

Conversation

Alami-Amine
Copy link

@Alami-Amine Alami-Amine commented Jan 21, 2025

  • Adding an overload of ReadFilesFromDirectory() that takes in a filename_pattern as a second argument.
  • I thought of not using regex at all and only using entry.path().extension() since my current use-case is for matching specific file extensions. But I went with regex since it gives more flexibility.
  • I could add an entry for this in the documentation if wanted.

@Alami-Amine
Copy link
Author

@lszekeres Could you please review?

@Alami-Amine
Copy link
Author

There is an Actions error that doesn't seem related to my change?

@lszekeres
Copy link
Member

Thanks a lot! We'd rather avoid using std::regex or depending on RE2 here. Would this work: #1534, ie using a filter function? If yes, I can check this in

copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 30, 2025
@Alami-Amine
Copy link
Author

Alami-Amine commented Jan 31, 2025

@lszekeres Yaa looks perfect! thanks!

copybara-service bot pushed a commit that referenced this pull request Jan 31, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 31, 2025
copybara-service bot pushed a commit that referenced this pull request Jan 31, 2025
@Alami-Amine
Copy link
Author

replaced by the commit: 2efcd1e

@Alami-Amine Alami-Amine closed this Feb 1, 2025
@Alami-Amine Alami-Amine deleted the AA/Overloading_ReadFilesFromDirectory branch February 1, 2025 08:53
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