simplified file_info by using System.filedate
authorclasohm
Tue, 09 Jan 1996 13:45:58 +0100
changeset 1434 834da5152421
parent 1433 e7f9273024c2
child 1435 aefcd255ed4a
simplified file_info by using System.filedate
src/Pure/POLY.ML
--- a/src/Pure/POLY.ML	Sat Jan 06 14:04:12 1996 +0100
+++ b/src/Pure/POLY.ML	Tue Jan 09 13:45:58 1996 +0100
@@ -60,16 +60,7 @@
 (*Get a string containing the time of last modification, attributes, owner
   and size of file (but not the path) *)
 fun file_info "" = ""
-  | file_info name =
-      let
-          val (is, os) = ExtendedIO.execute ("ls -l " ^ name)
-          val (result, _) = take_suffix (apr(op<>," ")) 
-                              (explode (ExtendedIO.input_line is))
-             (*Remove the part after the last " " (i.e. the path/filename) *)
-        in close_in is;
-           close_out os;
-           implode result
-        end;
+  | file_info name = string_of_int (System.filedate name);
 
 (*Delete a file *)
 fun delete_file name =