摘要: $dir = FCPATH."uploads/attachment/"; $this->getFiles($dir);function getFiles($dir) { $arr=array(); if (is_dir($dir)) { $data = scandir($dir . $file); foreach ($data as $file) { if ($file != '.' && $file != '..') { ... 阅读全文