File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments