$page->dirname()
Returns the full name of the page's directory.
Example
<?php echo $page->dirname() ?>