files-view: Cleaning and documenting some code
It took me some head scratching to understand the point of all this juggling with FileAndDirectory
, so, when I got it, I started trying to improve it. I did not try to change the logic, so this is mostly cosmetic.