HOME LINKS SAL PUBLIC SOFTWARE SEARCH MADE UP

SAGATOR


file_magic()
  File magic test (like "file -i command").
  
  This scanner can be used to test file content for a special type.
  You need a python module "magic", which is by default in file's
  source, but in most distributions it is not compiled in package.
  
  Usage: file_magic({'VirName': 'regexp_pattern', ..}, flags=0, raw=True)
  
  Where: 'VirName' is a string, which identifies defined virus
         'regexp_pattern' is a regular expression pattern
         flags is an int, which defines regular expression flags,
           like re.I to ignore it's case.
         raw is a boolean, when True, use MAGIC_RAW instead of MAGIC_MIME