You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be handy if you could scan a Tempfile (child of File) object as it exists in memory. irb> require 'tempfile' file = Tempfile.open("/path/to/file/file.txt") file.unlink Clamby.safe?(file)
I realise this may be a limitation as clamscan but thought I would make the suggestion anyway.
The text was updated successfully, but these errors were encountered:
After a bit of digging around into clamscan, it appears that there is no way to force it to solely read a file from memory. If passing input from STDIN, clamscan will write the input to a temporary file then scan that. The use-case for this request was to avoid files touching disk so it may be a little redundant.
It would be handy if you could scan a Tempfile (child of File) object as it exists in memory.
irb> require 'tempfile'
file = Tempfile.open("/path/to/file/file.txt")
file.unlink
Clamby.safe?(file)
I realise this may be a limitation as clamscan but thought I would make the suggestion anyway.
The text was updated successfully, but these errors were encountered: