Permalink
Browse files

disassembler: Fix absolute UNIX paths

  • Loading branch information...
CyberShadow committed Sep 6, 2012
1 parent f17e978 commit 87047b920c5fff1e225b7847cbee49224669cef3
Showing with 1 addition and 1 deletion.
  1. +1 −1 disassembler.d
View
@@ -70,7 +70,7 @@ final class StringBuilder
for (int l=0; l<dirSegments.length-1; l++)
{
auto subdir = join(dirSegments[0..l+1], "/");
- if (!exists(longPath(subdir)))
+ if (subdir.length && !exists(longPath(subdir)))
mkdir(longPath(subdir));
}
write(longPath(filename), buf[0..pos]);

0 comments on commit 87047b9

Please sign in to comment.