zipios++  2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
zipios::anonymous_namespace{filepath.cpp} Namespace Reference


std::string pruneTrailingSeparator (std::string path)
 Prune the trailing separator if present. More...

Function Documentation

std::string zipios::anonymous_namespace{filepath.cpp}::pruneTrailingSeparator ( std::string  path)

This function is used to ensure that the FilePath does NOT end with a separator.

At this time the path is not canonicalized properly. We expect path to not include double separators one after another. However, passing such a path to the FilePath will keep it as is.
[in]pathThe path to prune of one trailing separator.
The path as is or without the last '/'.

Definition at line 59 of file filepath.cpp.

References zipios::g_separator.

Referenced by zipios::FilePath::operator=().