src/Pure/System/isabelle_system.scala
changeset 60028 9a06e10f1a5c
parent 60013 42d34eeb283c
child 60196 e12973f1899e
--- a/src/Pure/System/isabelle_system.scala	Sun Apr 12 11:23:36 2015 +0200
+++ b/src/Pure/System/isabelle_system.scala	Sun Apr 12 11:38:05 2015 +0200
@@ -257,8 +257,8 @@
   /* mkdirs */
 
   def mkdirs(path: Path): Unit =
-    if (bash("mkdir -p " + shell_path(path)).rc != 0)
-      error("Failed to create directory: " + quote(platform_path(path)))
+    if (path.is_dir || bash("mkdir -p " + shell_path(path)).rc == 0) ()
+    else error("Failed to create directory: " + quote(platform_path(path)))