去除uuid.txt文件

This commit is contained in:
4ngle 2010-06-22 04:07:24 +00:00
parent e467fe5225
commit b104956874
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class FilelistController extends Zend_Controller_Action {
$fileName = $file['file_name']; $fileName = $file['file_name'];
$filePath = $file['file_path']; $filePath = $file['file_path'];
$id = $file['id']; $id = $file['id'];
if($fileName!=='/uuid.txt'){
$pathArray = explode("/",$fileName); $pathArray = explode("/",$fileName);
if(substr($fileName,-1)=='/'&&empty($pathArray[2])){ if(substr($fileName,-1)=='/'&&empty($pathArray[2])){
$documents[$i] = $file; $documents[$i] = $file;
@ -23,6 +24,7 @@ class FilelistController extends Zend_Controller_Action {
} }
} }
} }
}
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(); $this->_helper->viewRenderer->setNoRender();
echo Zend_Json::encode($documents); echo Zend_Json::encode($documents);