src/Pure/System/isabelle_system.scala
changeset 73325 a89f56ab2686
parent 73324 48abb09d49ea
child 73333 b70d82358c6d
--- a/src/Pure/System/isabelle_system.scala	Sat Feb 27 22:17:56 2021 +0100
+++ b/src/Pure/System/isabelle_system.scala	Sun Feb 28 21:31:35 2021 +0100
@@ -208,8 +208,10 @@
 
   def make_directory(path: Path): Path =
   {
-    try { Files.createDirectories(path.file.toPath) }
-    catch { case ERROR(_) => error("Failed to create directory: " + path.absolute) }
+    if (!path.is_dir) {
+      try { Files.createDirectories(path.file.toPath) }
+      catch { case ERROR(_) => error("Failed to create directory: " + path.absolute) }
+    }
     path
   }