I don't understand your point, so I'll try to be exhaustive
- I didn't "name it" I "used it" , $tree was already there with the value I needed.
- In the filesystem context "tree" and "path" are not synonyms, but quite related
- this is the first time I hear a passed parameter should have the same name in and out of the function.