/Engine/Source/Runtime/Core/Public/Misc/PathViews.h
Normalize and remove trailing slash unless the preceding character is '/' or ':'
static void NormalizeDirectoryName ( FStringBuilderBase & InOutPath )