ftp-client-conduit: Transfer file with FTP and FTPS with Conduit

[ library, public-domain, web ] [ Propose Tags ]

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.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.4.0.1, 0.5.0.0, 0.5.0.1, 0.5.0.2, 0.5.0.3, 0.5.0.4, 0.5.0.5
Dependencies base (>=4.7 && <5), bytestring (>=0.10.8.2 && <0.11), conduit (>=1.1 && <1.4), connection (>=0.2 && <0.4), exceptions (>=0.10.0 && <0.11), ftp-client (>=0.5 && <0.6), resourcet (>=1.2 && <1.3) [details]
License LicenseRef-PublicDomain
Author Megan Robinson
Maintainer mrobinson7627@gmail.com
Category Web
Home page https://github.com/mr/ftp-client
Source repo head: git clone https://github.com/mr/ftp-client
Uploaded by miscyb at 2019-09-24T11:25:54Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 7608 total (35 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-09-24 [all 1 reports]

Readme for ftp-client-conduit-0.5.0.5

[back to package description]

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