Function TRAP::FileSystem::GetFileEnding#
Function Documentation#
-
TRAP::Optional<std::string> TRAP::FileSystem::GetFileEnding(const std::filesystem::path &path)#
Get only the file ending without its name from a file path.
Note
The file extension as returned by this function includes a period to make it possible to distinguish the file that ends with a period (function return “.”) from a file with no extension (function returns “”).
- Parameters:
path – File path.
- Returns:
String only containing the file ending without its file name on success, empty optional otherwise.