How to get full path for "../"?

As you can read in the documentation, FPaths::GetPath Returns the path in front of the filename. Here you passing “…/” as parameter so the path is “…”
This function will not transform a relative path into an absolute one.

Try to use FPaths::GameDir() instead.

Just in case: https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Misc/FPaths/index.html

Best regards.

I am trying to print full path for “…/” in Unreal Engine
but It only returns “…” ,
as i know it is parent directory , and it should return something like C:\Myproj…

FString fs = FPaths::GetPath("../"); 
UE_LOG(LogTemp, Warning, TEXT("%s"), *fs);

how can I log full path ?

Joris Vial,

May I ask another relative question? How could I get the parent path of my current path? I didn’t find any functions in FPaths.

Thanky you!

Another solution:

const FString& RelPath = FPaths::ProjectDir();
const FString& FullPath = IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*RelPath);
1 Like

One more solution as of 4.27:

const FString& RelPath = FPaths::ProjectDir();
const FString& FullPath = FPaths::ConvertRelativePathToFull(RelPath);