title: How can I get the parent of the current file?
body: <p>To get the current <code>*.cfm</code> file I use:</p>
  
  <pre><code>GetFileFromPath(GetCurrentTemplatePath())
  </code></pre>
  
  <p>Is there a simple way to get the parent of the current file? </p>
  
  <p>I.e. if the current file is <code>...\MyApp\Users\addUser.cfm</code> I want to return <code>Users</code>.</p>
  
  <p>Edit: the reason I want to do this is to check for access permission. Depending on path different policies will be enforced.</p>
  
  <p>Edit: The linked question doesn't provide the correct answer.</p>