MCPcopy Create free account
hub / github.com/apache/arrow / CheckForDirectory

Method CheckForDirectory

cpp/src/arrow/filesystem/hdfs.cc:322–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320 }
321
322 Status CheckForDirectory(const std::string& path, const char* action) {
323 // Check existence of path, and that it's a directory
324 HdfsPathInfo info;
325 RETURN_NOT_OK(GetPathInfoStatus(path, &info));
326 if (info.kind != FileType::Directory) {
327 return Status::IOError("Cannot ", action, " directory '", path,
328 "': not a directory");
329 }
330 return Status::OK();
331 }
332
333 Status GetChildren(const std::string& path, std::vector<std::string>* listing) {
334 std::vector<HdfsPathInfo> detailed_listing;

Callers

nothing calls this directly

Calls 2

IOErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected