Navigation
API > API/Runtime > API/Runtime/DatasmithCore > API/Runtime/DatasmithCore/FDatasmithUtils
Description
Gets the file name and its extension. In case of extension like asm.1, the return name is the part before the full extension (asm.1) The right part of extension must to be a numeric value
| Name | GetCleanFilenameAndExtension |
| Type | function |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithUtils.h |
| Include Path | #include "DatasmithUtils.h" |
| Source | /Engine/Source/Runtime/Datasmith/DatasmithCore/Private/DatasmithUtils.cpp |
static void GetCleanFilenameAndExtension
(
const FString & InFilePath,
FString & OutFilename,
FString & OutExtension
)
Parameters
| Name | Remarks |
|---|---|
| InFilePath | the path of the file |
| OutFilename | the filename (without extension), minus any path information. |
| OutExtension | the extension |