Builder
Fluent builder that collects files (path + size) and the torrent name, then produces a CreateTorrent. This is the convenience layer over constructing a FileStorage directly, analogous to libtorrent's add_files + file_storage feeding create_torrent.
Offsets are assigned automatically in insertion order. For a multi-file torrent, file paths are stored as name/<relative path> so they round-trip through TorrentInfo.
Functions
Link copied to clipboard
Builds the CreateTorrent from the collected files.
Link copied to clipboard
Builds the immutable FileStorage from the collected specs.