|
@@ 295-303 (lines=9) @@
|
| 292 |
|
$files = iterator_to_array($fileFinder); |
| 293 |
|
|
| 294 |
|
$arrFileList = array(); |
| 295 |
|
foreach ($dirs as $dir) { |
| 296 |
|
$arrFileList[] = array( |
| 297 |
|
'file_name' => $this->convertStrFromServer($dir->getFilename()), |
| 298 |
|
'file_path' => $this->convertStrFromServer($this->normalizePath($dir->getRealPath())), |
| 299 |
|
'file_size' => $dir->getSize(), |
| 300 |
|
'file_time' => date("Y/m/d", $dir->getmTime()), |
| 301 |
|
'is_dir' => true, |
| 302 |
|
); |
| 303 |
|
} |
| 304 |
|
foreach ($files as $file) { |
| 305 |
|
$arrFileList[] = array( |
| 306 |
|
'file_name' => $this->convertStrFromServer($file->getFilename()), |
|
@@ 304-312 (lines=9) @@
|
| 301 |
|
'is_dir' => true, |
| 302 |
|
); |
| 303 |
|
} |
| 304 |
|
foreach ($files as $file) { |
| 305 |
|
$arrFileList[] = array( |
| 306 |
|
'file_name' => $this->convertStrFromServer($file->getFilename()), |
| 307 |
|
'file_path' => $this->convertStrFromServer($this->normalizePath($file->getRealPath())), |
| 308 |
|
'file_size' => $file->getSize(), |
| 309 |
|
'file_time' => date("Y/m/d", $file->getmTime()), |
| 310 |
|
'is_dir' => false, |
| 311 |
|
); |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
return $arrFileList; |
| 315 |
|
} |