add support for additional zip file extensions #244
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit allows the user to specify additional zip extensions in the config file. This is implemented by adding a new optional field to the config file,
additional_extensions_zip
, which is a list of strings. If this field is present, the program will use the specified extensions in addition to the default ones.Internally, the
AdapterMeta
struct that store file extension matchers is moved into theZipAdapter
struct, and the constructor forZipAdapter
is modified to take the additional extensions as a parameter. TheAdapterMeta
struct is then constructed with the default extensions and the additional extensions, if any.