FPaths::GetPath

Returns the path in front of the filename.