I am using the below code to get the filename and it works great for me. But I name the file WITHOUT extension (.uasset).
const FString fileName = FPaths::GetCleanFilename(filePath);
Thanks in advance for your help.
You can use FPaths :: Split for this:
FPaths::Split(fileName,path,fileNameWithoutExtension,extension);