module File:FILE
val ls : string -> (string * Ftp.stats) listtype file_descr
type open_flag =
| |
O_RDONLY |
| |
O_WRONLY |
| |
O_RDWR |
val openfile : string -> open_flag list -> Ftp.file_perm -> file_descropenfile name flags perms opens the file named name with flags flags and mode mode (in octal).val close : file_descr -> unitval read : file_descr -> string -> int -> int -> inttype seek_command =
| |
SEEK_SET |
(* |
indicates positions relative to the beginning of the file
| *) |
| |
SEEK_CUR |
(* |
indicates positions relative to the current position
| *) |
| |
SEEK_END |
(* |
indicates positions relative to the end of the file
| *) |
lseek.val lseek : file_descr -> int -> seek_command -> int