FPaths::MakeValidFileName

Returns a string that is safe to use as a filename because all items in [GetInvalidFileSystemChars()](API\Runtime\Core\Misc\FPaths\GetInvalidFileSystemChars) are removed

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 MakeValidFileName
(
    const FString & InString,
    const TCHAR InReplacementChar
)

Remarks

Returns a string that is safe to use as a filename because all items in GetInvalidFileSystemChars() are removed

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