You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Moved dll export from type to methods/statics #rb none [CL 25904988 by henrik karlsson in ue5-main branch]
27 lines
799 B
C++
27 lines
799 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Containers/UnrealString.h"
|
|
#include "CoreMinimal.h"
|
|
#include "HAL/Platform.h"
|
|
#include "Misc/Paths.h"
|
|
#include "UObject/NameTypes.h"
|
|
|
|
class FEditorFolderUtils
|
|
{
|
|
public:
|
|
/** Get the leaf name of a specified folder path */
|
|
static UNREALED_API 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 UNREALED_API bool PathIsChildOf(const FString& PotentialChild, const FString& Parent);
|
|
static UNREALED_API bool PathIsChildOf(const FName& PotentialChild, const FName& Parent);
|
|
};
|