FPathViews::GetBaseFilenameWithPath

Returns the portion of the path before the last dot.

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 GetBaseFilenameWithPath
(
    const FStringView & InPath
)

Remarks

Returns the portion of the path before the last dot.

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

Returns

The portion of the path before the last dot.

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