Skip to content

instream returns None #20

Description

@srinathganesh

Test Code

import clamd
  cd = clamd.ClamdUnixSocket()

  f = '/tmp/EICAR.txt'
  open(f, 'wb').write(clamd.EICAR)
  print(f"Test1: {cd.scan(f)}")

  f = '/tmp/SAFE.txt'
  open(f, 'wb').write(b"asdf")
  print(f"Test2: {cd.scan(f)}")

  from six import BytesIO
  r = cd.instream(BytesIO(clamd.EICAR))
  print(r)

Result

Test1: {'/tmp/EICAR.txt': ('FOUND', 'Eicar-Test-Signature')}
Test2: {'/tmp/SAFE.txt': ('OK', None)}
None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions