RealDocs

UBlueprintPathsLibrary::GetInvalidFileSystemChars

function Engine Blueprint Since unknown
#include "Kismet/BlueprintPathsLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns a string containing every character considered invalid in a filename by the current operating system.

Caveats & Gotchas

  • The set of characters returned is platform-dependent — Windows disallows more characters (e.g. `:`, `*`, `?`) than Unix-like systems.
  • This returns a character set for you to filter with yourself; it doesn't sanitize a string for you — use MakeValidFileName for that.
  • The result is a flat string of characters, not an array; to test a character you check for its presence with FString::Contains or similar.

Signature

static ENGINE_API FString GetInvalidFileSystemChars();

Return Type

FString

Example

Inspect which characters are disallowed C++
FString InvalidChars = UBlueprintPathsLibrary::GetInvalidFileSystemChars();
bool bHasColon = InvalidChars.Contains(TEXT(":"));

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.