| 802 | } |
| 803 | |
| 804 | Status OSSFileSystem::GetChildren(const std::string& dir, |
| 805 | std::vector<std::string>* result) { |
| 806 | result->clear(); |
| 807 | TF_RETURN_IF_ERROR(oss_initialize()); |
| 808 | std::string object, bucket; |
| 809 | std::string host, access_id, access_key; |
| 810 | TF_RETURN_IF_ERROR( |
| 811 | _ParseOSSURIPath(dir, bucket, object, host, access_id, access_key)); |
| 812 | OSSConnection oss(host, access_id, access_key); |
| 813 | oss_request_options_t* oss_options = oss.getRequestOptions(); |
| 814 | aos_pool_t* pool = oss.getPool(); |
| 815 | return _ListObjects(pool, oss_options, bucket, object, result, true, false, |
| 816 | true, 1000); |
| 817 | } |
| 818 | |
| 819 | Status OSSFileSystem::GetMatchingPaths(const std::string& pattern, |
| 820 | std::vector<std::string>* results) { |
nothing calls this directly
no test coverage detected