$item) {
//跳过一级目录下的文件
if (!empty($item['filename'])) {continue;}
echo <<
{$item['directory']}
eof;
//二级目录
if (!empty($item['directories'])) {
foreach($item['directories'] as $fid => $dir) {
echo <<
- {$dir['directory']}
eof;
//URL链接
if (!empty($dir['files'])) {
foreach($dir['files'] as $urlItem) {
echo <<
{$urlItem['shortcut']['name']}
{$urlItem['shortcut']['url']}
eof;
}
}
echo <<