We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80e50f3 commit 3dd97c3Copy full SHA for 3dd97c3
src/LessIO/Strategies/Win32/Win32FileSystemStrategy.cs
@@ -89,6 +89,11 @@ public override void CreateDirectory(Path path)
89
int lengthRoot = path.PathRoot.Length;
90
91
var firstNonRootPathIndex = pathString.IndexOfAny(Path.DirectorySeperatorChars, lengthRoot);
92
+ if (firstNonRootPathIndex == -1)
93
+ {
94
+ // this is a directory directly off of the root (because no, non-root directory seperators exist)
95
+ firstNonRootPathIndex = pathString.Length - 1; // set it to the whole path so that the loop below will create the root dir
96
+ }
97
var i = firstNonRootPathIndex;
98
while (i < pathString.Length)
99
{
0 commit comments