MCPcopy Create free account
hub / github.com/apache/impala / ListFilesInDir

Function ListFilesInDir

be/src/kudu/util/env_util.cc:388–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388Status ListFilesInDir(Env* env,
389 const string& path,
390 vector<string>* entries) {
391 RETURN_NOT_OK(env->GetChildren(path, entries));
392 auto iter = entries->begin();
393 while (iter != entries->end()) {
394 if (*iter == "." || *iter == ".." || iter->find(kTmpInfix) != string::npos) {
395 iter = entries->erase(iter);
396 continue;
397 }
398 ++iter;
399 }
400 return Status::OK();
401}
402
403} // namespace env_util
404} // namespace kudu

Callers 1

CopyDirectoryFunction · 0.85

Calls 6

OKFunction · 0.85
eraseMethod · 0.80
GetChildrenMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected