UpYun::getFileInfo PHP Method

getFileInfo() public method

获取文件、目录信息
public getFileInfo ( string $path ) : mixed
$path string 路径
return mixed
    public function getFileInfo($path)
    {
        /*{{{*/
        $rsp = $this->_do_request('HEAD', $path);
        return $rsp;
    }

Usage Example

 public function getFileInfo($filename)
 {
     //上传到云服务器
     $config = $this->getConfig();
     tsload(ADDON_PATH . '/library/upyun.class.php');
     $cloud = new UpYun($config['cloud_image_bucket'], $config['cloud_image_admin'], $config['cloud_image_password']);
     $cloud->setTimeout(60);
     $res = $cloud->getFileInfo($filename);
     return $res;
 }
All Usage Examples Of UpYun::getFileInfo