| 1 |
let () = Printexc.record_backtrace false |
| 2 |
|
| 3 |
let dir = Sys.argv.(1) |
| 4 |
|
| 5 |
let write f = |
| 6 |
let path = Filename.concat dir f in |
| 7 |
let out = open_out path in |
| 8 |
output_string out (f ^ " contents\n"); |
| 9 |
close_out_noerr out |
| 10 |
|
| 11 |
let () = |
| 12 |
Unix.mkdir dir 0o777; |
| 13 |
write "foo"; |
| 14 |
write "bar" |