FPathViews::GetCleanFilename

Returns the portion of the path after the last separator.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/PathViews.h

Include

#include "Misc/PathViews.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/PathViews.cpp

Syntax

static FStringView GetCleanFilename
(
    const FStringView & InPath
)

Remarks

Returns the portion of the path after the last separator.

Examples: (Using '/' but '\' is valid too.) "A/B/C.D" -> "C.D" "A/B/C" -> "C" "A/B/" -> "" "A" -> "A"

Returns

The portion of the path after the last separator.

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