rem: file fi(f, file::in); fi.seek(0, file::end); libtorrent::size_type size = fi.tell(); t.add_file(l, size);
add: t.add_file(l, file_size(f));
context: void add_files(	torrent_info& t	, path const& p	, path const& l){	path f(p / l);	if (is_directory(f))	{		for (directory_iterator i(f), end; i != end; ++i)			add_files(t, p, l / i->leaf());	}	else	{		std::cerr << "adding \"" << l.string() << "\"\n";		file fi(f, file::in);		fi.seek(0, file::end);		libtorrent::size_type size = fi.tell();		t.add_file(l, size);	}}