diff --git a/source/dub/internal/vibecompat/inet/path.d b/source/dub/internal/vibecompat/inet/path.d index 5e97e1b..f76ac75 100644 --- a/source/dub/internal/vibecompat/inet/path.d +++ b/source/dub/internal/vibecompat/inet/path.d @@ -97,6 +97,11 @@ /// Converts the Path object to a native path string (backslash as path separator on Windows). string toNativeString() const { + if (m_nodes.empty) { + version(Windows) assert(!absolute, "Empty absolute path detected."); + return absolute ? "/" : "."; + } + Appender!string ret; // for absolute unix paths start with /