Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change nqp::mkdir on JVM to create all nonexistent directories.
This unbusts make spectest.
  • Loading branch information
Donald Hunter committed Dec 4, 2015
1 parent 52ded1d commit fef6b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -929,9 +929,9 @@ public static long mkdir(String path, long mode, ThreadContext tc) {
try {
String os = System.getProperty("os.name").toLowerCase();
if (os.indexOf("win") >= 0)
Files.createDirectory(Paths.get(path));
Files.createDirectories(Paths.get(path));
else
Files.createDirectory(Paths.get(path),
Files.createDirectories(Paths.get(path),
PosixFilePermissions.asFileAttribute(modeToPosixFilePermission(mode)));
}
catch (Exception e) {
Expand Down

0 comments on commit fef6b98

Please sign in to comment.