http://rfp.wordpress.dev/packages/portrait-package/

In this example, portrait-package is the current page's slug, but we'd like to get the one before it: packages

The solution is:

get_page($post->post_parent)->post_name
Doing a vardump on the file displays this: