title: How to use ttorrent to create a torrent file?
body: <p>I'm starting to use ttorrent (<a href="https://github.com/mpetazzoni/ttorrent" rel="nofollow">Turn's BitTorrent Java library</a>) to create a local network synchronized folder.</p>
  
  <p>My goal is to use the torrent protocol do sync large files in nodes hard drives.
  But I can't see how to create a new torrent file using ttorrent.</p>
  
  <p>I need to:
  1) A new file is added to one node.
  2) Other nodes receive the torent file and start do download this file from the first node or pieces from other nodes that already downloaded that file part, speeding the downloading time. This way I can avoid each node to download gigabytes from a server (and wait all day).</p>
  
  <p>I can't go ahead without knowing how to create a torrent file for that new added file (or if a better and smart way exists).</p>
  
  <p>I can have a central point to serve as tracker.</p>
  
  <p>Thanks.</p>