Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/12/2010, 15:07
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: SPL - Existe la clase DirectoryFilterDots ?

¿Haz intentado usarla? En sí no es muy complicada:
Código PHP:
Ver original
  1. <?php
  2. class DirectoryFilterDots extends RecursiveFilterIterator
  3. {
  4.     function __construct($path)
  5.     {
  6.         parent::__construct(new RecursiveDirectoryIterator($path));
  7.     }
  8.  
  9.     function accept()
  10.     {
  11.         return !$this->getInnerIterator()->isDot();
  12.     }
  13.  
  14.     function key()
  15.     {
  16.         return $this->getInnerIterator()->getPathname();
  17.     }
  18. }

Saludos.