/Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h
Find the MountPoint for a LocalPath, LongPackageName, or ObjectPath and return its elements. Use this function instead of TryConvertFilenameToLongPackageName or TryConvertLongPackageNameToFilename if you need to handle InPaths that might be ObjectPaths.
static bool TryConvertToMountedPath ( FStringView InPath, [FString](API\Runtime\Core\Containers\FString) * OutLocalPathNoExtension, [FString](API\Runtime\Core\Containers\FString) * OutPackageName, [FString](API\Runtime\Core\Containers\FString) * OutObjectName, [FString](API\Runtime\Core\Containers\FString) * OutSubObjectName, [FString](API\Runtime\Core\Containers\FString) * OutExtension, [EFlexNameType](API\Runtime\CoreUObject\Misc\FPackageName\EFlexNameType) * OutFlexNameType, [EErrorCode](API\Runtime\CoreUObject\Misc\FPackageName\EErrorCode) * OutFailureReason )