ftp-client-conduit

Transfer file with FTP and FTPS with Conduit

https://github.com/mr/ftp-client

Version on this page:0.5.0.4
LTS Haskell 18.28:0.5.0.5
Stackage Nightly 2021-06-14:0.5.0.5
Latest on Hackage:0.5.0.5

See all snapshots ftp-client-conduit appears in

LicenseRef-PublicDomain licensed by Megan Robinson
Maintained by [email protected]
This version can be pinned in stack with:ftp-client-conduit-0.5.0.4@sha256:18201b34476e9dfc1792e48a55137625caaf54506d5fd59c83900a5bfd52f97c,1308

Module documentation for 0.5.0.4

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