Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackageName
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static bool TryGetMountPointForPath
(
FStringView InFilePathOrPackageName,
FStringBuilderBase & OutMountPointPackageName,
FStringBuilderBase & OutMountPointFilePath,
FStringBuilderBase & OutRelPath,
EFlexNameType * OutFlexNameType,
EErrorCode * OutFailureReason
)
Remarks
Find a mount point that contains the given LocalFilePath or PackageName, and if found, return the MountPoint and RelativePath True if the MountPoint was found, else false
Parameters
| Name | Description |
|---|---|
| InFilePathOrPackageName | The path to test, either a LocalFilePath or a PackageName or an ObjectPath |
| OutMountPointPackageName | If the MountPoint is found, the PackageName of the MountPoint is copied into this variable, otherwise it is set to empty string |
| OutMountPointFilePath | If the MountPoint is found, the LocalFilePath of the MountPoint is copied into this variable, otherwise it is set to empty string |
| OutRelPath | If the MountPoint is found, the RelativePath from the MountPoint to InFilePathOrPackageName is copied into this variable, otherwise it is set to empty string If InFilePathOrPackageName was a filepath, the extension is removed before copying it into OutRelpath The OutRelPath is the same for both the LocalFilePath and the PackageName |
| OutFlexNameType | If non-null, will be set to whether InFilePathOrPackageName was a PackageName or Filename if the MountPoint is found, otherwise it is set to EFlexNameType::Invalid |
| OutFailureReason | If non-null, will be set to the reason InPath could not be converted, or to EErrorCode::Unknown if the function was successful. |