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

Method dirAddSlashAtEnd

src/efsw/FileSystem.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void FileSystem::dirAddSlashAtEnd( std::string& dir ) {
43 if ( dir.size() >= 1 && dir[dir.size() - 1] != getOSSlash() ) {
44 dir.push_back( getOSSlash() );
45 }
46}
47
48void FileSystem::dirRemoveSlashAtEnd( std::string& dir ) {
49 if ( dir.size() >= 1 && dir[dir.size() - 1] == getOSSlash() ) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected