文档首页> 对象存储服务 OBS> OBS Browser+> 常见问题> 是否支持统计文件夹内的文件数目及大小
更新时间:2024-04-26 GMT+08:00
分享

是否支持统计文件夹内的文件数目及大小

OBS Browser+不支持统计文件夹内的文件数目及大小,可以使用obsutil列举对象命令,指定前缀为需要查看的文件夹进行列举。

以Linux操作系统为例,运行./obsutil ls obs://bucket-test/test/ -du -limit=0命令,查询桶bucket-test下test文件夹的大小。
./obsutil ls obs://bucket-test/test/ -du -limit=0

Start at 2023-03-16 06:40:18.2773873 +0000 UTC

Listing objects .

Remove the -du parameter to view more information
[DU] Total prefix [test/] size: 990.85MB
  • Util 5.4.6 版本及以上支持-du参数。
分享:

    相关文档

    相关产品