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

Add is_compatible API #91

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Add is_compatible API #91

merged 3 commits into from
Jan 24, 2024

Conversation

swashko
Copy link
Collaborator

@swashko swashko commented Jan 23, 2024

Adds is_compatible API to ModelScan objects that checks whether a single file path is compatible with any of the supported file extensions of the available scanners

Does not open directories or zipfiles and only checks zipfiles on supported_zip_extensions

closes #90

Copy link
Member

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

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

LGTM for v1 (not opening files), will wait for @iamfaisalkhan review too

Copy link
Member

@iamfaisalkhan iamfaisalkhan left a comment

Choose a reason for hiding this comment

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

lgtm

@swashko swashko merged commit a647a2b into main Jan 24, 2024
8 checks passed
@swashko swashko deleted the 90-is_compatible branch January 24, 2024 01:48
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.

Add is_compatible API to ModelScan SDK
3 participants