Boot user out if not logged in If the treeType is branch or branchReload, scan the dir at the specific location, sort into dir and files arrays, nat case sort them and merge. This is then finalArray and can be used to create the UL list