Unreal/CarlaUE4/Plugins/RoadRunnerImporter/Source/RoadRunnerImporter/Private/RoadRunnerImportUtil.cpp
////////////////////////////////////////////////////////////////////////////////
// Deletes the temporary folder created during re-import to back up the old
// version of assets.
Deletes the temporary folder created during re-import to back up the old
version of assets.
Deletes the temporary folder created during re - import to back up the old version of assets .
void FRoadRunnerImportUtil::CleanUpTempFolder()
{
	if (!TempFolderExists())
	{
		return;
	}
	FString filesystemTempPath = GetTempFolderAbsolute();
	if (!FPlatformFileManager::Get().GetPlatformFile().DeleteDirectoryRecursively(*filesystemTempPath))
		UE_LOG(RoadRunnerImporter, Warning, TEXT("Failed to clean up TEMP directory. Manual cleanup may be needed."));
}
void FRoadRunnerImportUtil :: CleanUpTempFolder ( ) { if ( ! TempFolderExists ( ) ) { return ; } FString filesystemTempPath = GetTempFolderAbsolute ( ) ; if ( ! FPlatformFileManager :: Get ( ) . GetPlatformFile ( ) . DeleteDirectoryRecursively ( * filesystemTempPath ) ) UE_LOG ( RoadRunnerImporter , Warning , TEXT ( " " ) ) ; }
Deletes the temporary folder created during re-import to back up the old
version of assets.
Deletes the temporary folder created during re - import to back up the old version of assets .