Class Ftp_client.get_method


class get_method : file:string -> representation:representation -> store:(state -> Ftp_data_endpoint.local_receiver) -> unit -> ftp_method
This FTP method walks to the right directory and gets file from the server. The file is stored in the local_receiver that can be obtained by calling the store function. The selected representation remains unchanged.

file should be a slash-separated path. It is always interpreted relative to the home directory of the user (i.e. the active directory after login).