Navigation
API > API/Plugins > API/Plugins/ModelContextProtocol
Description
Joins BasePath & Filename, ensuring the resulting path is indeed under BasePath. Useful to ensure models can't create files outside the intended BasePath using relative directory traversal e.g YourBasePath/../SomeOtherBase/MyFile.ext
| Name | UE::ModelContextProtocol::SafeConvertRelativePathToFull |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ModelContextProtocol/Source/ModelContextProtocol/Public/ModelContextProtocolUtils.h |
| Include Path | #include "ModelContextProtocolUtils.h" |
namespace UE
{
namespace ModelContextProtocol
{
bool UE::ModelContextProtocol::SafeConvertRelativePathToFull
(
const FString & BasePath,
const FString & FileName,
FString & OutFilePath
)
}
}