| 209 | } |
| 210 | |
| 211 | std::string FileInfo::dirPath() const |
| 212 | { |
| 213 | std::size_t last_pos {}; |
| 214 | std::string retval; |
| 215 | last_pos = FileName.find_last_of('/'); |
| 216 | if (last_pos != std::string::npos) { |
| 217 | retval = FileName.substr(0, last_pos); |
| 218 | } |
| 219 | else { |
| 220 | retval = pathToString(fs::current_path()); |
| 221 | } |
| 222 | return retval; |
| 223 | } |
| 224 | |
| 225 | std::string FileInfo::fileNamePure() const |
| 226 | { |
no test coverage detected