确认目录层数判断

This commit is contained in:
wlx 2012-09-18 06:14:23 +00:00
parent 5d1a3b5668
commit 3e95a555f6
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class SubmitController extends Zend_Controller_Action
$filename = mb_substr($v,mb_strlen($path)+1);
$filesize = filesize($v);
$isdir=is_dir($v)?1:0;
$depth=substr_count($filename,"/")+1;
$depth=substr_count($filename,"/");
//$this->chmodr($path.$v,0444);
$sql = "INSERT INTO datafile (dsid,filename,filesize,isdir,depth) VALUES (?,?,?,?,?)";
$sth = $this->db->prepare($sql);