I have a directory structure path like root/path1/path2/path3 I want this to be
Array(
[0] => "root"
[1] => Array
(
[0] => "path1"
[1] => Array
(
[0] => "path2"
[1] => Array
(
[0] => "path3"
)
)
)
)