Skip to content

Commit

Permalink
disassembler: Fix absolute UNIX paths
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Sep 6, 2012
1 parent f17e978 commit 87047b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disassembler.d
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 87047b9

Please sign in to comment.