Safe Haskell | Safe-Infered |
---|
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
- createSink :: MonadResource m => URI -> Sink ByteString m ()
- createSource :: MonadResource m => URI -> Source m ByteString
- data FTPException
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.
data FTPException Source
Thrown if a FTP-level protocol exception happens