mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
main: more doc
This commit is contained in:
@@ -597,6 +597,13 @@ def collect_rule_file_paths(rule_paths: List[str]) -> List[str]:
|
||||
|
||||
|
||||
def get_rules(rule_paths: List[str], disable_progress=False) -> RuleSet:
|
||||
"""
|
||||
args:
|
||||
rule_paths: list of paths to rules files or directories containing rules files
|
||||
"""
|
||||
|
||||
# rule_paths may contain directory paths,
|
||||
# so search for file paths recursively.
|
||||
rule_file_paths = collect_rule_file_paths(rule_paths)
|
||||
|
||||
# this list is parallel to `rule_file_paths`:
|
||||
|
||||
Reference in New Issue
Block a user