Display folder when selecting file

How do I get the folder belonging to the file I have selected to display in the folder tree? Right now it just stays on the last folder selected even though the file I am selecting is in another folder.

Check you don't have the lock turned on in the folder tree:


Yes, that was it. Thanks.