| 369 | } |
| 370 | |
| 371 | String File::getFileNameWithoutExtension() const |
| 372 | { |
| 373 | auto lastSlash = fullPath.lastIndexOfChar (getSeparatorChar()) + 1; |
| 374 | auto lastDot = fullPath.lastIndexOfChar ('.'); |
| 375 | |
| 376 | if (lastDot > lastSlash) |
| 377 | return fullPath.substring (lastSlash, lastDot); |
| 378 | |
| 379 | return fullPath.substring (lastSlash); |
| 380 | } |
| 381 | |
| 382 | bool File::isAChildOf (const File& potentialParent) const |
| 383 | { |
no test coverage detected