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

Method FindParent

cpp/src/arrow/filesystem/mockfs.cc:329–336  ·  view source on GitHub ↗

Find the parent entry, only full matching allowed

Source from the content-addressed store, hash-verified

327
328 // Find the parent entry, only full matching allowed
329 Entry* FindParent(const std::vector<std::string>& parts) {
330 if (parts.size() == 0) {
331 return nullptr;
332 }
333 size_t consumed;
334 auto entry = FindEntry(parts.begin(), --parts.end(), &consumed);
335 return (consumed == parts.size() - 1) ? entry : nullptr;
336 }
337
338 void GatherInfos(const FileSelector& select, const std::string& base_path,
339 const Directory& base_dir, int32_t nesting_depth,

Callers 3

DeleteDirMethod · 0.80
DeleteFileMethod · 0.80
RunMethod · 0.80

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected