src/filesystem/adapters/OssAdapter.php
public function getSize($path)
    {
        $location = $this->applyPathPrefix($path);
        $response = $this->ossClient->getObjectMeta($this->bucket, $location);
        return [
            'size' => $response['content-length']
        ];
    }
public function getSize($path)
    {
        $location = $this->applyPathPrefix($path);
        $response = $this->ossClient->getObjectMeta($this->bucket, $location);
        return [
            'size' => $response['content-length']
        ];
    }
public function getSize ( $ path ) { $ location = $ this -> applyPathPrefix ( $ path ) ; $ response = $ this -> ossClient -> getObjectMeta ( $ this -> bucket , $ location ) ; return [ 'size' => $ response [ 'content-length' ] ] ; }
Get the size of a file.

@param string $path

@return array|false
Get the size of a file .