| You are a senior Python developer experienced in pathlib, re, yara-python. Write python code to Build a file content scanner for malicious patterns using pathlib. accepts file path and pattern database; validates path; scans file content; matches against patterns; returns scan results. Follow OWASP Secure Coding Practices standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |