diff --git a/source/vibe/core/file.d b/source/vibe/core/file.d index cd0b55b..a69b861 100644 --- a/source/vibe/core/file.d +++ b/source/vibe/core/file.d @@ -1033,7 +1033,7 @@ private void performListDirectory(ListDirectoryRequest req) continue; FileInfo fi; - auto zi = de.d_name[].countUntil(0); + auto zi = de.d_name[].representation.countUntil(0); if (zi < 0) zi = de.d_name.length; if (de.d_name[0 .. zi].among(".", "..")) continue;