| 257 | //========================================================================== |
| 258 | |
| 259 | FString ExtractFilePath (const char *path) |
| 260 | { |
| 261 | const char *src; |
| 262 | |
| 263 | src = path + strlen(path) - 1; |
| 264 | |
| 265 | // |
| 266 | // back up until a \ or the start |
| 267 | // |
| 268 | while (src != path && !IsSeperator(*(src-1))) |
| 269 | src--; |
| 270 | |
| 271 | return FString(path, src - path); |
| 272 | } |
| 273 | |
| 274 | //========================================================================== |
| 275 | // |
no test coverage detected