Hi, I’m trying to move a file (video recorded in background using OBS) to a usb drive, but I’m getting this error when building.
Here’s the relevant part of the code:
IPlatformFile& FileManager = FPlatformFileManager::Get().GetPlatformFile();
TArray<FString> Files = TArray<FString>();
FString Path = TEXT("C:\\Asuntoikkuna\\Videos");
FileManager.FindFiles(Files, *Path, TEXT("mp4"));
if (USBDriveLetter != TEXT("NO DRIVE"))
{
FString To = USBDriveLetter.Append(TEXT(":\\"));
for (FString File : Files)
{
FileManager.MoveFile(*To, *File);
}
}
What am I doing wrong? I’m very new to C++, moved over from Unity with C# recently.