Find the parent entry, only full matching allowed
| 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, |