MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetChildren

Method GetChildren

serving/processor/framework/filesystem/oss_file_system.cc:804–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804Status 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
819Status OSSFileSystem::GetMatchingPaths(const std::string& pattern,
820 std::vector<std::string>* results) {

Callers

nothing calls this directly

Calls 4

oss_initializeFunction · 0.85
getRequestOptionsMethod · 0.80
getPoolMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected