| 123 | delete list; |
| 124 | } |
| 125 | TF_StringStream* TF_GetChildren(const char* dirname, TF_Status* status) { |
| 126 | auto* children = new std::vector<::tensorflow::string>; |
| 127 | |
| 128 | TF_SetStatus(status, TF_OK, ""); |
| 129 | ::tensorflow::Set_TF_Status_from_Status( |
| 130 | status, ::tensorflow::Env::Default()->GetChildren(dirname, children)); |
| 131 | |
| 132 | auto* list = new TF_StringStream; |
| 133 | list->list = children; |
| 134 | list->position = 0; |
| 135 | return list; |
| 136 | } |
| 137 | |
| 138 | TF_StringStream* TF_GetLocalTempDirectories() { |
| 139 | auto* tmpdirs = new std::vector<::tensorflow::string>; |