I haven't even compiled yet. I think the get_directory() function will work though.