src/HOL/TPTP/atp_theory_export.ML
changeset 73315 d01ca5e9e0da
parent 72591 56514a42eee8
child 73374 316e12147698
--- a/src/HOL/TPTP/atp_theory_export.ML	Sat Feb 27 17:25:54 2021 +0100
+++ b/src/HOL/TPTP/atp_theory_export.ML	Sat Feb 27 17:32:02 2021 +0100
@@ -286,18 +286,14 @@
 
 fun generate_casc_lbt_isa_files_for_theory ctxt thy format infer_policy type_enc dir_name =
   let
-    val dir = Path.explode dir_name
-    val _ = Isabelle_System.mkdir dir
+    val dir = Isabelle_System.make_directory (Path.explode dir_name)
     val file_order_path = ap dir file_order_name
     val _ = File.write file_order_path ""
     val problem_order_path = ap dir problem_order_name
     val _ = File.write problem_order_path ""
-    val problem_dir = ap dir problem_name
-    val _ = Isabelle_System.mkdir problem_dir
-    val suggestion_dir = ap dir suggestion_name
-    val _ = Isabelle_System.mkdir suggestion_dir
-    val include_dir = ap problem_dir include_name
-    val _ = Isabelle_System.mkdir include_dir
+    val problem_dir = Isabelle_System.make_directory (ap dir problem_name)
+    val suggestion_dir = Isabelle_System.make_directory (ap dir suggestion_name)
+    val include_dir = Isabelle_System.make_directory (ap problem_dir include_name)
 
     val (facts, (prelude, groups)) =
       problem_of_theory ctxt thy format infer_policy type_enc