Description
Transfer file with FTP and FTPS with Conduit.
Description
ftp-client is a library for communicating with an FTP server. It works over both a clear channel or TLS. ftp-client-conduit uses conduit to stream files and data in constant space.
README.md
FTP Conduit
ftp-client is a client library for the FTP protocol in Haskell.
Examples
Insecure
withFTP "ftp.server.com" 21 $ \h welcome -> do
print welcome
login h "username" "password"
runConduitRes
$ retr h filename
.| sinkFile filename
Secured with TLS
withFTPS "ftps.server.com" 21 $ \h welcome -> do
print welcome
login h "username" "password"
runConduitRes
$ retr h filename
.| sinkFile filename