carb::extras::fixWindowsPathPrefix
Defined in carb/extras/WindowsPath.h
-
inline std::wstring carb::extras::fixWindowsPathPrefix(const std::wstring &pathW)
(Windows only) Performs fixup on a Windows file path by adding or removing the long path prefix as necessary.
If the file path is too long and doesn’t have long path prefix, the prefix is added. If the file path is short and has long path prefix, the prefix is removed. Otherwise, the path is not modified.
- Errors
Accessible via carb::ErrorApi
None
- Parameters
pathW – Input string to convert, in Unicode (Windows native) encoding.
- Returns
Valid Windows system file path.