开发者社区> 问答> 正文

iOS 检查文件是否存在参数怎样传?



检查文件是否存在


SDK提供了同步接口检测某个指定Object是否在OSS上:NSError * error = nil;BOOL isExist = [client doesObjectExistInBucket: TEST_BUCKET withObjectKey: @"file1m" withError:&error]; if (!error) { if(isExist) { NSLog( @"File exists.");} else { NSLog( @"File not exists.");}} else { NSLog( @"Error!");} TEST_BUCKET 传什么,是bucket.name  ?    [backcolor=transparent] @"file1m"是上传的URL吗

展开
收起
liutinghaha 2016-07-08 17:28:20 3448 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
手淘iOS性能优化探索 立即下载
From Java/Android to Swift iOS 立即下载
深入剖析iOS性能优化 立即下载