MCPcopy Create free account
hub / github.com/SpartanJ/efsw / dirRemoveSlashAtEnd

Method dirRemoveSlashAtEnd

src/efsw/FileSystem.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
eraseMethod · 0.80

Tested by

no test coverage detected