diff --git a/source/dub/internal/vibecompat/inet/path.d b/source/dub/internal/vibecompat/inet/path.d index 4a662f9..e12cf3f 100644 --- a/source/dub/internal/vibecompat/inet/path.d +++ b/source/dub/internal/vibecompat/inet/path.d @@ -273,7 +273,11 @@ /// Splits up a path string into its elements/folders PathEntry[] splitPath(string path) { - if( path.startsWith("/") || path.startsWith("\\") ) path = path[1 .. $]; + if( path.startsWith("/") || path.startsWith("\\") ) + { + if( path.startsWith("\\") ) path = path[2 .. $]; + else path = path[1 .. $]; + } if( path.empty ) return null; if( path.endsWith("/") || path.endsWith("\\") ) path = path[0 .. $-1];