Change Directory Path Header

I have seen some addons change this per sub directory, But i am never able to get it to change. Could someone point me in the right direction to what property i need to set to change this when a user navigates directories in an addon??

watch gallery