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

fix: filescan not working anymore #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abhinavkrin
Copy link
Member

@abhinavkrin abhinavkrin commented Jan 29, 2025

This PR rewrites the code for interacting with ClamAV and fixes the "file not being scanned" issue.
It also improves the message displayed to the user when a virus is detected.
It also bumps the app to version 0.1.6

Screen.Recording.2025-01-29.at.11.34.38.PM.mov

SUP-731

@abhinavkrin abhinavkrin force-pushed the fix/filescan-not-working branch from 8c8784e to ad01dd4 Compare January 29, 2025 18:27
// If the scan finished too soon, treat as an error
if (!finished) {
const err = new Error(`Scan aborted. Reply from server: ${response.toString("utf8")}`);
return reject(err);
Copy link
Member

Choose a reason for hiding this comment

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

A suggestion: you can inline the error creation and the rejection

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