Lines Matching full:target_path
991 std::vector<std::string> target_path;
993 Split(target, '/', &target_path);
997 std::reverse(target_path.begin(), target_path.end());
1001 // components, this becomes the common suffix of target_path and cwd_path.
1002 while (!target_path.empty() && !cwd_path.empty()
1003 && target_path.back() == cwd_path.back()) {
1004 target_path.pop_back();
1010 // the end of target_path.
1012 target_path.push_back("..");
1016 std::reverse(target_path.begin(), target_path.end());
1017 return Join(target_path, '/');