How can I construct this file tree based on what files the user is allowed to view?
- by robert
I have an array of files that looks like this:
Array
(
[0] => Array
(
[type] => folder
[path] => RootFolder
)
[1] => Array
(
[type] => file
[path] => RootFolder\error.log
)
[2] => Array
(
[type] => folder
…