Function mrpt::system::extractFileExtension

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”.