Skip to content

Commit 7f12562

Browse files
committed
add getBucketUsage
1 parent 20cfc81 commit 7f12562

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

upyun.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ public function getFolderUsage($bucket = '/')
181181
return $this->_do_request('GET', "/{$this->_bucketname}/?usage");
182182
}
183183

184+
/**
185+
* 获取空间存储使用量,单位 byte
186+
*/
187+
public function getBucketUsage()
188+
{
189+
return $this->getFolderUsage('/');
190+
}
191+
184192
public function getXRequestId()
185193
{
186194
return $this->x_request_id;

0 commit comments

Comments
 (0)