FPakFile::GetRelativeFilePathFromMountPointer

Helper function to return Filename's relative path from the mount point.

Choose your operating system:

Windows

macOS

Linux

References

Module

PakFile

Header

/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h

Include

#include "IPlatformFilePak.h"

Syntax

static const TCHAR * GetRelativeFilePathFromMountPointer
(
    const FString & Child,
    const FString & MountPoint
)

Remarks

Helper function to return Filename's relative path from the mount point. Returns null if Child is not equal to MountPoint and is not a child path under MountPoint, else returns pointer to the offset within Child after the MountPoint. If child equals MountPoint, returns null; The MountPoint itself is not a valid Filename, since Filenames must have non-zero length and are added on to the MountPoint.