| 22 | namespace |
| 23 | { |
| 24 | std::string GetDirPath( const char* filepath ) |
| 25 | { |
| 26 | #if _WIN32 |
| 27 | const char* filename = PathFindFileName( filepath ); |
| 28 | return std::string( filepath, filename - filepath ); |
| 29 | #else |
| 30 | char storage[MAXPATHLEN]; |
| 31 | const char* dirName = dirname_r( filepath, storage ); |
| 32 | return dirName; |
| 33 | #endif |
| 34 | } |
| 35 | |
| 36 | std::optional<std::string> JoinPath( const char* path1, const char* path2 ) |
| 37 | { |
no outgoing calls
no test coverage detected