| 46 | } |
| 47 | |
| 48 | void FileSystem::dirRemoveSlashAtEnd( std::string& dir ) { |
| 49 | if ( dir.size() >= 1 && dir[dir.size() - 1] == getOSSlash() ) { |
| 50 | dir.erase( dir.size() - 1 ); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | std::string FileSystem::fileNameFromPath( std::string filepath ) { |
| 55 | dirRemoveSlashAtEnd( filepath ); |