UBlueprintPathsLibrary::CollapseRelativeDirectories

Takes a fully pathed string and eliminates relative pathing (eg: annihilates ".." with the adjacent directory).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintPathsLibrary.h

Include

#include "Kismet/BlueprintPathsLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/Kismet/BlueprintPathsLibrary.cpp

Syntax

static bool CollapseRelativeDirectories
(
    const FString & InPath,
    FString & OutPath
)

Remarks

Takes a fully pathed string and eliminates relative pathing (eg: annihilates ".." with the adjacent directory). Assumes all slashes have been converted to TEXT('/'). For example, takes the string: BaseDirectory/SomeDirectory/../SomeOtherDirectory/Filename.ext and converts it to: BaseDirectory/SomeOtherDirectory/Filename.ext

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss