diff --git a/source/dub/internal/vibecompat/core/file.d b/source/dub/internal/vibecompat/core/file.d index 8c51f74..0cfb555 100644 --- a/source/dub/internal/vibecompat/core/file.d +++ b/source/dub/internal/vibecompat/core/file.d @@ -111,6 +111,9 @@ removeFile(to); } + if (!existsFile(to.toString().dirName)) + mkdirRecurse(to.toString().dirName); + .copy(from.toNativeString(), to.toNativeString()); // try to preserve ownership/permissions in Posix diff --git a/source/dub/internal/vibecompat/inet/path.d b/source/dub/internal/vibecompat/inet/path.d index 7525a10..f7b9d84 100644 --- a/source/dub/internal/vibecompat/inet/path.d +++ b/source/dub/internal/vibecompat/inet/path.d @@ -84,7 +84,8 @@ Appender!string ret; // for absolute paths start with / - if( absolute ) ret.put('/'); + version( Windows ) { } + else if( absolute ) ret.put('/'); foreach( i, f; m_nodes ){ if( i > 0 ) ret.put('/');