Function trv::sys::has_extension#
Defined in File monitor.cpp
Function Documentation#
-
bool trv::sys::has_extension(const std::string &fname, const std::string &fext)#
Check if a file has a given extension.
- Parameters:
fname – File name.
fext – File extension (with the dot).
- Returns:
{
true,false}