Skip to main content

scan_file

Function scan_file 

Source
pub async fn scan_file(
    config: &ScannerConfig,
    path: &Path,
    size: u64,
) -> AppResult<Verdict>
Expand description

Scans a file. Errors (daemon unreachable, timeout, an ERROR answer) are returned as Unavailable: the caller refuses the upload.