title: Check a file path belong to folder name
body: <p>I want to check a folder name is contain a file path or not.
  e.g.</p>
  
  <pre><code>string filePath = @"C:/vietnam/hello/world/welcome.jpg"
  IsFileBelongToFolderName(filePath, "hello");//should return true
  IsFileBelongToFolderName(filePath, "hell");//should return false
  </code></pre>
  
  <p>In simple case, I just check the file path contain "/FolderName/", but am not sure it is correct for any case</p>
  
  <p>Do have any build-in function for this check ?</p>
  
  <p><strong>UPDATE</strong>
  In real example, we are create application to synchronize folder. Some sub folder contain meta file, so we don't want to sync it.</p>
  
  <p>Instead pass simple folder name, we want to pass chain of sub folders, e.g: <code>folderName = "hello/world"</code>. I think it less complex but work same meaning with <code>.gitignore</code> file. 
  For now:</p>
  
  <pre><code>string filePath = @"C:/vietnam/hello/world/welcome.jpg"
  IsFileBelongToFolderName(filePath, "hello/world");//should return true
  IsFileBelongToFolderName(filePath, "hell/world");//should return false
  IsFileBelongToFolderName(filePath, "hell");//should return false
  </code></pre>