| 52 | } |
| 53 | |
| 54 | std::string FileSystem::fileNameFromPath( std::string filepath ) { |
| 55 | dirRemoveSlashAtEnd( filepath ); |
| 56 | |
| 57 | size_t pos = filepath.find_last_of( getOSSlash() ); |
| 58 | |
| 59 | if ( pos != std::string::npos ) { |
| 60 | return filepath.substr( pos + 1 ); |
| 61 | } |
| 62 | |
| 63 | return filepath; |
| 64 | } |
| 65 | |
| 66 | std::string FileSystem::pathRemoveFileName( std::string filepath ) { |
| 67 | dirRemoveSlashAtEnd( filepath ); |
nothing calls this directly
no test coverage detected