You can't pass a directory to yara.compile(), what you can do is iterate
the directory yourself and construct a dictionary, where keys are
namespaces (you can use any string, as long as they are unique) and values
are the path to the file. Like in:

rules = yara.compile(filepaths={

  'namespace1':'/my/path/rules1',
  'namespace2':'/my/path/rules2'})




El 20 ene. 2018 4:54, "George Z" <[email protected]> escribió:

> hi, I'm trying to use yara.compile() to compile a large folder with
> subdirectories full of yara rules into one big rule object to run files
> against and I am trying to do this by passing the big folder to
> yara.compile() but it isn't working is there any way to do this? thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "YARA" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"YARA" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to