module type FILE =sig
..end
val ls : string -> (string * Ftp.stats) list
type
file_descr
type
open_flag =
| |
O_RDONLY |
| |
O_WRONLY |
| |
O_RDWR |
val openfile : string -> open_flag list -> Ftp.file_perm -> file_descr
openfile name flags perms
opens the file named name
with flags flags
and mode mode
(in octal).val close : file_descr -> unit
val read : file_descr -> string -> int -> int -> int
type
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