FPaths::CreateStandardFilename

Make fully standard "Unreal" pathname:

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Misc/Paths.h"

Source

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

Syntax

static FString CreateStandardFilename
(
    const FString & InPath
)

Remarks

Make fully standard "Unreal" pathname:

  • Normalizes path separators [NormalizeFilename]

  • Removes extraneous separators [NormalizeDirectoryName, as well removing adjacent separators]

  • Collapses internal ..'s

  • Makes relative to Engine (will ALWAYS start with ......)