Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Public/EditorFolderUtils.h
jimmy smith a6013c4f3f Fix for nounity error
#fyi roey.borsteinas

[CL 14225933 by jimmy smith in ue5-main branch]
2020-08-31 23:10:07 -04:00

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);
};