You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
23 lines
678 B
C++
23 lines
678 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Misc/Paths.h"
|
|
|
|
class UNREALED_API FEditorFolderUtils
|
|
{
|
|
public:
|
|
/** Get the leaf name of a specified folder path */
|
|
static FName GetLeafName(const FName& InPath);
|
|
|
|
/** Get the parent path for the specified folder path */
|
|
FORCEINLINE static FName GetParentPath(const FName& InPath)
|
|
{
|
|
return FName(*FPaths::GetPath(InPath.ToString()));
|
|
}
|
|
|
|
/** Check if the specified path is a child of the specified parent */
|
|
static bool PathIsChildOf(const FString& PotentialChild, const FString& Parent);
|
|
static bool PathIsChildOf(const FName& PotentialChild, const FName& Parent);
|
|
}; |