| 64 | } |
| 65 | |
| 66 | std::string FileSystem::pathRemoveFileName( std::string filepath ) { |
| 67 | dirRemoveSlashAtEnd( filepath ); |
| 68 | |
| 69 | size_t pos = filepath.find_last_of( getOSSlash() ); |
| 70 | |
| 71 | if ( pos != std::string::npos ) { |
| 72 | return filepath.substr( 0, pos + 1 ); |
| 73 | } |
| 74 | |
| 75 | return filepath; |
| 76 | } |
| 77 | |
| 78 | std::string FileSystem::getLinkRealPath( std::string dir, std::string& curPath ) { |
| 79 | FileSystem::dirRemoveSlashAtEnd( dir ); |
nothing calls this directly
no test coverage detected