<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def header_footer_exists(filepath):
 """Check if directory-components is listed in requirements files."""

    with open(filepath) as f:
        return re.search(Utils.exp, f.read())