]> matita.cs.unibo.it Git - helm.git/blobdiff - components/extlib/hExtlib.ml
; and not . after auto-paramodulation
[helm.git] / components / extlib / hExtlib.ml
index 073c5695959480e657070af45a68ec3029132ef6..07886f2690e8eaba64137d434f330793c2423e04 100644 (file)
@@ -214,6 +214,16 @@ let is_dir fname =
     (Unix.stat fname).Unix.st_kind = Unix.S_DIR
   with Unix.Unix_error _ -> false
 
+let writable_dir path =
+  try
+    let file = path ^ "/prova_matita" in
+    let oc = open_out file in
+    close_out oc;
+    Sys.remove file;
+    true
+  with Sys_error _ -> false
+
+
 let is_regular fname =
   try
     (Unix.stat fname).Unix.st_kind = Unix.S_REG