addFile

fun addFile(relPath: String, size: Long, isPadFile: Boolean = false, symlinkTarget: String? = null): CreateTorrent.Builder

Adds a file. relPath is relative to the torrent root (no leading name); for a single-file torrent add exactly one file whose relPath equals the torrent name (or empty, treated as the name).