Commit Graph

3 Commits

Author SHA1 Message Date
savashn
72ca093620 remove unnecessary comment lines 2025-10-18 14:50:37 +03:00
savashn
913f34d84d fix win32 namespaces tests 2025-10-18 13:57:20 +03:00
savashn
62c8aadc4f win: handle win32 namespaces
This commit introduces a comprehensive path parser that handles:
- Win32 file namespace: \?\C:\path
- Win32 device namespace: \.\C:
- NT namespace: \??\C:\path
- UNC paths: \server\share and \?\UNC\server\share
- Volume GUID paths: \?\Volume{...}
- Special paths: \?\GLOBALROOT\...

The implementation also adds validation for:
- NULL and empty input strings
- Path length limits (32767 characters for Win32 namespace)
- Forward slash rejection in Win32 namespaces (which don't support normalization)
- Explicit rejection of GLOBALROOT paths
2025-10-17 23:02:10 +03:00