Ejemplo n.º 1
0
 /**
  * @param SplFileInfo $file
  *
  * @return array
  */
 protected function mapFileInfo(SplFileInfo $file)
 {
     $normalized = parent::mapFileInfo($file);
     if ($normalized['type'] === 'link') {
         $normalized['type'] = 'dir';
     }
     return $normalized;
 }
Ejemplo n.º 2
0
 /**
  * Map file info to normalized key names
  *
  * @param   \SplFileInfo  $file  The original file info class
  * @return  array
  */
 protected function mapFileInfo(SplFileInfo $file)
 {
     $default = parent::mapFileInfo($file);
     $default['owner'] = $file->getOwner();
     return $default;
 }