设置权限
bool Core_Ftp::chmod( string $path , string $perm )
参数列表
参数 类型 描述 默认值 $path
string
文件路径 $perm
string
权限,比如0755
bool
public function chmod($path, $perm)
{
if (!$this->_is_conn())
{
return false;
}
$result = @ftp_chmod($this->_conn_id, $perm, $path);
if (false===$result)
{
if (IS_DEBUG)
{
Core::debug()->error(__('ftp unable to chmod'));
}
return false;
}
return true;
}