usage: (def client (connect "ftp.sec.gov" "anonymous" "anonymous")) (get client "edgar/full-index/company.gz" "company.gz" binary) (disconnect client)
usage: (def client (connect "ftp.sec.gov" "anonymous" "anonymous")) (get client "edgar/full-index/company.gz" "company.gz" binary) (disconnect client)
(connect host user pass)
Connect to the host with user/pass. Returns FTPClient instance. The client is set to local passive mode which allows for using the client from behind a firewall. The remove verification enabled is disabled otherwise getting a file fails.
Connect to the host with user/pass. Returns FTPClient instance. The client is set to local passive mode which allows for using the client from behind a firewall. The remove verification enabled is disabled otherwise getting a file fails.
(get client remote-name local-name)
(get client remote-name local-name transfer-mode)
remote-file string path, local-file, string path, transfer-mode :ascii :binary. If no transfer mode is specified uses binary. Throws an exception if file is not retrieved successfully..
remote-file string path, local-file, string path, transfer-mode :ascii :binary. If no transfer mode is specified uses binary. Throws an exception if file is not retrieved successfully..
(local-passive-mode client)
Puts the client into local passive mode.
Puts the client into local passive mode.
(ls client dir)
Lists files in the given directory.
Lists files in the given directory.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close