ftp-conduit-0.0.5: FTP client package with conduit interface based off http-conduit

Safe HaskellSafe-Infered

Network.FTP.Conduit

Description

This module contains code to use files on a remote FTP server as Sources and Sinks.

Using these functions looks like this:

 let uri = fromJust $ parseURI "ftp://ftp.kernel.org/pub/README_ABOUT_BZ2_FILES"
 runResourceT $ createSource uri $$ consume

Synopsis

Documentation

createSink :: MonadResource m => URI -> Sink ByteString m ()Source

Create a conduit sink out of a URI. Uses the STOR command.

createSource :: MonadResource m => URI -> Source m ByteStringSource

Create a conduit source out of a URI. Uses the RETR command.