| 150 | |
| 151 | template <class Policy> |
| 152 | Control Impl<Policy>::ResolveRelativePath() |
| 153 | { |
| 154 | // This is a relative path. Convert it to absolute and restart. |
| 155 | std::string p = this->OS.GetWorkingDirectory(); |
| 156 | std::replace(p.begin(), p.end(), '\\', '/'); |
| 157 | if (ClassifyRoot(p) == Root::None) { |
| 158 | p.insert(0, 1, '/'); |
| 159 | } |
| 160 | if (p.back() != '/') { |
| 161 | p.push_back('/'); |
| 162 | } |
| 163 | P.insert(0, p); |
| 164 | return Control::Restart(); |
| 165 | } |
| 166 | |
| 167 | #ifdef _WIN32 |
| 168 | std::string ImplBase::GetWorkingDirectoryOnDrive(char letter) |
no test coverage detected