Function TRAP::FileSystem::GetFileNameWithEnding#

Function Documentation#

TRAP::Optional<std::string> TRAP::FileSystem::GetFileNameWithEnding(const std::filesystem::path &path)#

Get only the filename without its folders from a file path.

Parameters:

path – File path.

Returns:

String only containing the filename without its folders on success, empty optional otherwise.