def METHOD_NAME(self, rule_file_path: str, target_path: str | None = None) -> str:
    """
    Scans the (whole) db directory with the provided rule file and returns the (raw) results.
    Yara-python cannot be used, because it (currently) supports single-file scanning only.
    :param rule_file_path: The file path to the yara rule file.
    :return: The output from the yara scan.
    """
    compiled_flag = '-C' if Path(rule_file_path).read_bytes().startswith(b'YARA') else ''
    command = f'yara -r {compiled_flag} {rule_file_path} {target_path or self.db_path}'
    yara_process = subprocess.run(command, shell=True, stdout=PIPE, stderr=STDOUT, text=True)
    return yara_process.stdout