Method: COS::API#stat
- Defined in:
- lib/cos/api.rb
#stat(path, options = {}) ⇒ Object
目录/文件信息查询
231 232 233 234 235 236 237 |
# File 'lib/cos/api.rb', line 231 def stat(path, = {}) bucket = config.get_bucket([:bucket]) sign = http.signature.multiple(bucket) resource_path = Util.get_resource_path_or_file(config.app_id, bucket, path) http.get(resource_path, {params: {op: 'stat'}}, sign) end |