src/Pure/System/isabelle_system.scala
changeset 72414 af24c0dd6975
parent 72377 c7741f767e3e
child 72426 f5d60c12deeb
--- a/src/Pure/System/isabelle_system.scala	Fri Oct 09 13:41:06 2020 +0200
+++ b/src/Pure/System/isabelle_system.scala	Fri Oct 09 20:54:26 2020 +0200
@@ -193,13 +193,13 @@
   {
     if (!path.is_dir) {
       bash("perl -e \"use File::Path make_path; make_path('" + File.standard_path(path) + "');\"")
-      if (!path.is_dir) error("Failed to create directory: " + quote(File.platform_path(path)))
+      if (!path.is_dir) error("Failed to create directory: " + quote(File.platform_path(path.absolute)))
     }
     path
   }
 
   def new_directory(path: Path): Path =
-    if (path.is_dir) error("Directory already exists: " + path)
+    if (path.is_dir) error("Directory already exists: " + quote(File.platform_path(path.absolute)))
     else make_directory(path)
 
   def copy_dir(dir1: Path, dir2: Path): Unit =