ContentBrowserDataUtils::CalculateFolderDepthOfPath

Returns number of folders in forward slashed path (Eg, 1 for "/Path", 2 for "/Path/Name")

Choose your operating system:

Windows

macOS

Linux

References

Module

ContentBrowserData

Header

/Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserDataUtils.h

Include

#include "ContentBrowserDataUtils.h"

Source

/Engine/Source/Editor/ContentBrowserData/Private/ContentBrowserDataUtils.cpp

Syntax

namespace ContentBrowserDataUtils
{
    int32 ContentBrowserDataUtils::CalculateFolderDepthOfPath
    (
        const FStringView InPath
    )
}

Remarks

Returns number of folders in forward slashed path (Eg, 1 for "/Path", 2 for "/Path/Name")