diff --git a/common.php b/common.php index e72e9500cde0275a8bb866ad40f12b11f2737e76..b011a80e31c4e2711df10e30917de6001663e4e8 100644 --- a/common.php +++ b/common.php @@ -347,6 +347,11 @@ function main($path) if ($path1!='/'&&substr($path1,-1)=='/') $path1=substr($path1, 0, -1); $files = $drive->list_files($path1); } + if ($files['type']=='folder' && !$_SERVER['admin']) { + foreach ($files['list'] as $k => $v) { + if (isHideFile($k)) unset($files['list'][$k]); + } + } if ($_GET['json']) { // return a json