Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FPathViews
Description
Report whether the given path is an invalid path because it has a drive specifier (':') without a following path separator indicating the root of that drive. In general usage on Windows, drive specifiers without a following path separator are interpreted to mean the current working directory of the given drive. But that context is not always applicable and will need to be handled in system-specific ways. D: -> true D:/ -> false D:root -> true D:/root -> false //volume -> false /root -> false relpath -> false
See FPathViewsVolumeSpecifierTest for further edgecases.
| Name | IsDriveSpecifierWithoutRoot |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/PathViews.h |
| Include Path | #include "Misc/PathViews.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/PathViews.cpp |
static bool IsDriveSpecifierWithoutRoot
(
FStringView InPath
)
See Also
- SplitVolumeSpecifier for callers who want to followup by modifing the path.