title: Java: Check if path is parent of a file
body: <p>I cant seem to find a solution.</p>
  
  <p>I have two paths, like:</p>
  
  <p><code>D:/Views/me/a.b</code> AND
  <code>D:/Views/me/a</code></p>
  
  <p>or</p>
  
  <p><code>D:/Views/me/a.b</code> AND
  <code>D:/Views/me/a.b/x/y</code></p>
  
  <p>I have to ensure, that one file/directory is not a child of the other.
  I have tried <code>Contains</code> but it does not work for me in this case?</p>