void FileSystemAbstraction::EnsurePathSepAtEnd(std::string& path) { if (path.empty()) { path += "."sPS; } else if (!HasPathSepAtEnd(path)) { path += cPS; } }
void FileSystemAbstraction::EnsureNoPathSepAtEnd(std::string& path) { if (HasPathSepAtEnd(path)) { path.resize(path.size() - 1); } }
void FileSystemHandler::EnsureNoPathSepAtEnd(std::string& path) { if (HasPathSepAtEnd(path)) { path.resize(path.size() - 1); } }