-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 2393: Support glob patterns for files (#2394)
* implement globbing on ObjectStore * remove unused code * update list_file_with_suffix to use glob_file * reworked code such that glob_file matches list_file and glob_file_with_suffix list_file_with_suffix * rework the way we figure out what the greatest common base path is * refactor tests on longested_search_path_without_glob_pattern * added comment on / value * remove unused use stmt * rework implementation to find largest common path * revert accidental/temp changes * added tests to verify globbing * find inspiration in glob crate to better deal with windows * when running on windows, the expected path is slightly different (\ instead of /). * fixed clippy issue * added section on checks that are executed during a PR build * updated section (and script) to make explicit this is about formatting * replace with simple break * make filter_suffix not-async as it does not need to be async * no need to collect * attempt to make tests more understandable * actually format the code instead of only verifying * added test with ** as glob pattern as well * remove changes related to code formatting * remove unneeded empty line * run cargo fmt * Update data-access/src/object_store/mod.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * use try_filter as suggested in pr review Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
217 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters