コード例 #1
0
ファイル: LocalFile.php プロジェクト: DavidGarciaCat/eyeos
 /**
  * @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);
 }