function isDir($path) { return Lms_Ufs::is_dir($path); }
function _readFolder() { $this->_files = new Lms_FileSystem_Files(); $this->_folders = new Lms_FileSystem_Folders(); $path = $this->getPath(); if (Lms_Ufs::is_dir($path)) { if ($dh = Lms_Ufs::opendir($path)) { while (($file = Lms_Ufs::readdir($dh)) !== false) { if ($file != '.' && $file != '..') { $filePath = $path . "/" . $file; if (Lms_Ufs::is_dir($filePath)) { $this->_folders->add(new Lms_FileSystem_Folder($filePath)); } else { $this->_files->add(new Lms_FileSystem_File($filePath)); } } } Lms_Ufs::closedir($dh); } } $this->_readed = true; }