How can I check a condition if the path equal a folder name? : <p>Path = c:\users\source\ <strong>reports</strong>\projects\ .file</p>

<p>How can I check if the projects folder inside a folder name == "reports"?</p>

<p>for example: 
If (reports)
.....do a condition</p>
