Interface TorrentFile

interface TorrentFile {
    availability: number;
    is_seed: boolean;
    name: string;
    piece_range: [number, number];
    priority: number;
    progress: number;
    size: number;
}

Properties

availability: number

Percentage of file pieces currently available

is_seed: boolean

True if file is seeding/complete

name: string

File name (including relative path)

piece_range: [number, number]

array The first number is the starting piece index and the second number is the ending piece index (inclusive)

priority: number

File priority. See possible values here below

progress: number

File progress (percentage/100)

size: number

File size (bytes)