Esempio n. 1
0
 /**
  * @return array(IFile) The list of the files contained in the "file" itself if this
  * one is a directory, or the files contained in the parent directory if this one is
  * a normal file
  */
 public function listFiles($pattern = '*', $flags = AdvancedPathLib::GLOB_NORMAL)
 {
     if ($this->isDirectory()) {
         $this->checkReadPermission();
     } elseif ($this->isFile()) {
         $this->getParentFile()->checkReadPermission();
     }
     return parent::listFiles($pattern, $flags);
 }