๐Ÿ“ Directory Helper

Short Description

Small convenience wrappers for directory operations used by Gorgeous plugins and tooling. They operate on file-system paths and return boolean success flags.

Long Description

These helpers wrap the engine's file manager calls in a minimal, safe API. They are intended for runtime tooling (editor helpers, build tools) and make it easier to create, probe and remove directories without repeating boilerplate checks.

๐Ÿš€ Features

  • Check whether a directory exists.
  • Create directories (optionally recursively).
  • Delete directories with basic safety checks.

IsGorgeousDirectoryPresent

Returns true when the provided directory path exists on disk.

Parameter Name Type Description
DirectoryPath FString Absolute or relative path to check.
if (GorgeousDirectoryHelper::IsGorgeousDirectoryPresent(MyPath)) {
    // directory is present
}

MakeGorgeousDirectory

Creates the given directory. By default the operation creates intermediate directories when necessary.

Parameter Name Type Description
DirectoryPath FString Path to create.
bRecursive bool If true, create intermediate directories (default: true).
bool bCreated = GorgeousDirectoryHelper::MakeGorgeousDirectory(MyPath, true);

DeleteGorgeousDirectory

Deletes a directory. The helper performs basic checks and returns whether the deletion succeeded.

Parameter Name Type Description
DirectoryPath FString Path to delete.
bool bRemoved = GorgeousDirectoryHelper::DeleteGorgeousDirectory(MyPath);