Verify file entries in solidpkg

This commit is contained in:
C-3PO 2018-06-22 17:35:36 +02:00
parent c7bea67a1c
commit 06762c6107
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
2 changed files with 19 additions and 4 deletions

View file

@ -1,13 +1,14 @@
interface ISolidFile {
//TODO: show length
/** File name of this file. */
/** Length of this file in bytes, up to 1700000000 or 1.7 GB */
length: number;
/** File name of this file, e.g. `${product}_${from}to${to}.z01` or `${product}_${from}to${to}.zip`. */
path: [string];
}
interface ISolidFileInfo {
/** List of files that are part of this torrent. */
files: ISolidFile[];
/** Length of one piece in bytes, e.g. 4194304 for 4 MB. */
/** Length of one piece in bytes, e.g. 4194304 for 4 MiB. */
'piece length': number;
/** Concatenated hashes of all pieces. */
pieces: string;