rtorrent-rpc-0.2.1.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

data FileId Source

Constructors

FileId !TorrentId !Int 

Instances

Show FileId 
NFData FileId 
XmlRpcType FileId 

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.