Contents

Method

GetTorrentDescribedFiles

ModuleFileContent
LibraryFileContent
Action

Returns all files described within the info and files structures contained inside a torrent file.

Parameters

FilePath (string; required): The full path of the torrent file.

The FilePath parameter name is only available from v3.2 onwards.

In v3.1 and earlier FileName must be used instead.  While the earlier name will still work, we recommend that, from v3.2 onwards, FilePath is used instead.

Return values

DescribedFileName (string): The filename of a file described within the torrent file.

DescribedFileSizeBytes (int): The size in bytes of a file described within the torrent file.

Example

Get the files described in a torrent called myTorrent.torrent.

This uses the newer FilePath parameter name. Replace with FileName for v3.1 and older.
FileContent.GetTorrentDescribedFiles(FilePath:"C:\\torrents\\myTorrent.torrent");
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris SPARC
Notes