diff options
-rwxr-xr-x | bin/files.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/files.php b/bin/files.php index be2a364..e7ffaa9 100755 --- a/bin/files.php +++ b/bin/files.php @@ -204,7 +204,9 @@ function filesgetlisting($dir) if ($type == 'folder') { $newentry['path'] = $newentry['path'] .'/'; - $folderlisting[] = $newentry; + + if (glob(quotemeta($newentry['path']) .'*')) + $folderlisting[] = $newentry; } else $filelisting[] = $newentry; |