Skip to content

Commit 67b6ef0

Browse files
committed
update
1 parent 800d0e1 commit 67b6ef0

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ echo $result['x-upyun-file-date']; // 创建日期
135135

136136
### 获取空间使用状况
137137
````
138-
$upyun->getFolderUsage(); // 获取Bucket空间使用情况
139-
$upyun->getFolderUsage('/demo/'); 获取目录空间使用情况
138+
$upyun->getBucketUsage(); // 获取Bucket空间使用情况
140139
````
141140
返回的结果为空间使用量,单位 ***Byte***
142141

upyun.class.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,12 @@ public function getList($path = '/') {/*{{{*/
204204
}/*}}}*/
205205

206206
/**
207-
* 获取目录空间使用情况
208-
*
207+
* @deprecated
209208
* @param string $path 目录路径
210-
*
211209
* @return mixed
212210
*/
213-
public function getFolderUsage($path) {/*{{{*/
214-
$rsp = $this->_do_request('GET', $path . '?usage');
211+
public function getFolderUsage($path = '/') {/*{{{*/
212+
$rsp = $this->_do_request('GET', '/?usage');
215213
return floatval($rsp);
216214
}/*}}}*/
217215

0 commit comments

Comments
 (0)