Function mrpt::system::extractFileExtension
Defined in File filesystem.h
Function Documentation
-
std::string mrpt::system::extractFileExtension(const std::string &filePath, bool ignore_gz = false)
Extract the extension of a filename. For example, for “dummy.cpp”, it will return “cpp”. If “ignore_gz” is true, the second extension will be returned if the file name ends in “.gz”, for example, for “foo.map.gz”, this will return “map”.
See also