Trying to figure out how to restrict only to file/tree viewing