package ftp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ftp_connection
type file_kind =
  1. | S_REG
  2. | S_DIR
  3. | S_CHR
  4. | S_BLK
  5. | S_LNK
  6. | S_FIFO
  7. | S_SOCK
type file_perm = int
type stats = {
  1. st_kind : file_kind;
  2. st_perm : file_perm;
  3. st_un : string;
  4. st_gn : string;
  5. st_size : int;
  6. st_mtime : float;
}
exception Unrecognised_format
val connect : string -> int -> string -> string -> ftp_connection
val disconnect : ftp_connection -> unit
val set_passive : ftp_connection -> bool -> unit
val get_cur_dir : ftp_connection -> string
val chdir : ftp_connection -> string -> unit
val chdir_up : ftp_connection -> unit
val list_files : ftp_connection -> string -> string list
val get_file_size : ftp_connection -> string -> int
val ls : ftp_connection -> string -> (string * stats) list
val stat : ftp_connection -> string -> stats
val get_file : ftp_connection -> string -> string -> unit
val resume_file : ftp_connection -> string -> string -> int -> unit
val get_file_portion : ftp_connection -> string -> int -> string -> int -> int -> int
val mv : ftp_connection -> string -> string -> unit
val rm : ftp_connection -> string -> unit
val rmdir : ftp_connection -> string -> unit
val mkdir : ftp_connection -> string -> unit
val nop : ftp_connection -> unit
module type FILE = sig ... end
module File : FILE
OCaml

Innovation. Community. Security.