确认目录层数判断
This commit is contained in:
parent
5d1a3b5668
commit
3e95a555f6
|
@ -208,7 +208,7 @@ class SubmitController extends Zend_Controller_Action
|
||||||
$filename = mb_substr($v,mb_strlen($path)+1);
|
$filename = mb_substr($v,mb_strlen($path)+1);
|
||||||
$filesize = filesize($v);
|
$filesize = filesize($v);
|
||||||
$isdir=is_dir($v)?1:0;
|
$isdir=is_dir($v)?1:0;
|
||||||
$depth=substr_count($filename,"/")+1;
|
$depth=substr_count($filename,"/");
|
||||||
//$this->chmodr($path.$v,0444);
|
//$this->chmodr($path.$v,0444);
|
||||||
$sql = "INSERT INTO datafile (dsid,filename,filesize,isdir,depth) VALUES (?,?,?,?,?)";
|
$sql = "INSERT INTO datafile (dsid,filename,filesize,isdir,depth) VALUES (?,?,?,?,?)";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
|
|
Loading…
Reference in New Issue