src/Pure/POLY.ML
changeset 1480 85ecd3439e01
parent 1437 2ebbc23d49fa
child 2141 c2aedd8169cd
equal deleted inserted replaced
1479:21eb5e156d91 1480:85ecd3439e01
    64   let fun chrof n = chr (ord "0" + n);
    64   let fun chrof n = chr (ord "0" + n);
    65   in implode (map chrof (radixpand num)) end;
    65   in implode (map chrof (radixpand num)) end;
    66 
    66 
    67 in
    67 in
    68 
    68 
    69 (*Get a string containing the time of last modification, attributes, owner
    69 (*Get time of last modification; if file doesn't exist return an empty string*)
    70   and size of file (but not the path) *)
       
    71 fun file_info "" = ""
    70 fun file_info "" = ""
    72   | file_info name = radixstring (System.filedate name);
    71   | file_info name = radixstring (System.filedate name)  handle _ => "";
    73 
    72 
    74 (*Delete a file *)
    73 (*Delete a file *)
    75 fun delete_file name =
    74 fun delete_file name =
    76   let val (is, os) = ExtendedIO.execute ("rm " ^ name)
    75   let val (is, os) = ExtendedIO.execute ("rm " ^ name)
    77   in close_in is;
    76   in close_in is;