As described in issue #49 and https://github.com/kylefarris/clamscan/issues/101 it is more reliable to use clamscan.passthrough() rather than scanStream. This PR implements this.
In addition it takes care if the input file is of zero size which otherwise results in a hang.
As described in issue #49 and https://github.com/kylefarris/clamscan/issues/101 it is more reliable to use clamscan.passthrough() rather than scanStream. This PR implements this. In addition it takes care if the input file is of zero size which otherwise results in a hang.