extension

File::extension

Returns the file’s extension.

Declaration

static std::string extension(const std::string& filePath);

Parameters

Name

Type

Description

filePath

const std::string&

The path to the file to get the extension of.

Returns

The file’s extension, without the “.”.