rtorrent-rpc-0.2.2.0: A library for communicating with RTorrent over its XML-RPC interface.

Copyright(c) Kai Lindholm, 2014
LicenseMIT
Maintainermegantti@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.RTorrent.File

Contents

Description

For more info on actions, see Network.RTorrent.Action.

Synopsis

Documentation

getFilePartial :: FileId -> FileAction (FileId -> FileInfo) Source

Get a file except for FileId. The FileId can be got by running allFiles.

allFiles :: (FileId -> FileAction a) -> TorrentId -> TorrentAction [FileId :*: a] Source

Run the file action on all files that a torrent has.

Functions dealing with a single variable

getFilePath :: FileId -> FileAction String Source

Get the file name relative to the torrent base directory.

getFileAbsolutePath :: FileId -> FileAction String Source

Get the absolute path.

getFileOffset :: FileId -> FileAction Int Source

Get the offset of a file in a torrent, when chunks are interpreted as continuous data.